— I've read it all before, didn't want to use "config" file.
— Where it should rightly be.
— Auto clientPtr = DbClient::newPgClient(
"host=127.0.0.1 port=5432 dbname=postgres user=postgres password=xxx", 1);
Message permanent page
— 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.