Message from C, C++ discussions

December 2019

— One Client, multiple conn.


Or create the DbClient in configuration file, see

— I've read it all before, didn't want to use "config" file.

— Where it should rightly be.

— Pass='' or password=''

— Auto clientPtr = DbClient::newPgClient(
"host= port=5432 dbname=postgres user=postgres password=xxx", 1);

Message permanent page

— Shite, passwd ?

— Terminate called after throwing an instance of 'drogon::orm::BrokenConnection'
what(): No connection to database server
Aborted (core dumped)

Message permanent page

— This is an non-blocking method.

— Sorry, the issue is with auto result = sql->execSqlSync("SELECT * FROM log");

— This means that it cannot be used immediately after creation.

— It takes some time to create the connection to database.