diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-13 14:15:41 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-13 14:15:41 +0100 |
commit | 2b610c8bdef32c4662938f2d0244f85b6acb6b27 (patch) | |
tree | 100a3fcd4c9917cf56af024f19af3afe8e5d310d /test/testdb-mysql.cpp | |
parent | Remember PQ connection string (diff) | |
download | mygrate-2b610c8bdef32c4662938f2d0244f85b6acb6b27.tar.bz2 mygrate-2b610c8bdef32c4662938f2d0244f85b6acb6b27.tar.xz mygrate-2b610c8bdef32c4662938f2d0244f85b6acb6b27.zip |
Single implementation for getting MySQL test connection details
Diffstat (limited to 'test/testdb-mysql.cpp')
-rw-r--r-- | test/testdb-mysql.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/testdb-mysql.cpp b/test/testdb-mysql.cpp index 4b6c62e..17bc241 100644 --- a/test/testdb-mysql.cpp +++ b/test/testdb-mysql.cpp @@ -6,10 +6,10 @@ namespace MyGrate { namespace Testing { - const auto SERVER {MyGrate::getenv("MYGRATE_MYSQL_SERVER", "localhost")}; - const auto USER {MyGrate::getenv("MYGRATE_MYSQL_USER", ::getenv("LOGNAME"))}; - const auto PASSWORD {::getenv("MYGRATE_MYSQL_PASSWORD")}; - const auto PORT {(unsigned short)std::atoi(MyGrate::getenv("MYGRATE_MYSQL_PORT", "3306"))}; + const char * const MySQLDB::SERVER {MyGrate::getenv("MYGRATE_MYSQL_SERVER", "localhost")}; + const char * const MySQLDB::USER {MyGrate::getenv("MYGRATE_MYSQL_USER", ::getenv("LOGNAME"))}; + const char * const MySQLDB::PASSWORD {::getenv("MYGRATE_MYSQL_PASSWORD")}; + const unsigned short MySQLDB::PORT {(unsigned short)std::atoi(MyGrate::getenv("MYGRATE_MYSQL_PORT", "3306"))}; std::size_t MySQLDB::mocknum; MySQLDB::MySQLDB() : |