Created
December 13, 2017 18:59
-
-
Save asapelkin/9de7007e55f41234641e396198a634bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string appSid = "CLIENT_SID"; | |
string appServerSid = "89.108.120.<xx>/APP_SERVER"; | |
com::interproc::Node* node = new com::interproc::Node(appSid, *glb_ioservice); | |
glb_appServerNodeAddr = NodeAddress(appServerSid); | |
glb_dbManager = new DatabaseManager("GCDDB", | |
std::unique_ptr<DatabaseAccess>(static_cast<DatabaseAccess*>(new DatabaseRemoteAccess("GCDDB", node, glb_appServerNodeAddr))), | |
"<xx>", | |
"<xx>", | |
*glb_ioservice); | |
string request = "select * from sys.users limit 1;"; | |
com::sys::DatabaseManager::OnTableReceivedClb func = [](std::shared_ptr< com::sql::SqlTable >){cout<<"hello world"<<endl;}; | |
glb_dbManager->executeSqlRequest(request, func, "GCDDB"); | |
glb_ioservice->run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment