generated from Sithas/conan_template
соединение с базой!
This commit is contained in:
+1
-3
@@ -43,9 +43,7 @@ int main(int argc, char* argv[])
|
|||||||
auto const threads = std::max<int>(1, std::atoi(argv[4]));
|
auto const threads = std::max<int>(1, std::atoi(argv[4]));
|
||||||
string mysql_credentials = argv[5];
|
string mysql_credentials = argv[5];
|
||||||
|
|
||||||
mysqlx::Session session(mysql_credentials);
|
uad::SetMySqlSession(new mysqlx::Session(mysql_credentials));
|
||||||
|
|
||||||
uad::SetMySqlSession(&session);
|
|
||||||
|
|
||||||
net::io_context ioc{threads};
|
net::io_context ioc{threads};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user