Big cleanup

This commit is contained in:
eelke 2022-05-26 08:25:31 +02:00
parent d3080a08bb
commit 8b671090a0
55 changed files with 214 additions and 3967 deletions

View file

@ -48,28 +48,11 @@ public:
bool send(const std::string &command, on_result_callback on_result);
bool send(const std::string &command, Pgsql::Params params, on_result_callback on_result);
/** This version of send uses the signal onQueryResult and onQueryError to report back
* the completion of the query.
*/
// bool send(const std::string &command, Pgsql::Params params = Pgsql::Params())
// {
// return send(command, params, [this] (Expected<std::shared_ptr<Pgsql::Result>> res, qint64) {
// if (res.valid()) {
// emit onQueryResult(res.get());
// }
// else {
// emit onQueryError();
// }
// });
// }
bool cancel();
Q_SIGNALS:
void onStateChanged(ASyncDBConnection::State state);
void onNotice(Pgsql::ErrorDetails notice);
// void onQueryResult(std::shared_ptr<Pgsql::Result> result);
// void onQueryError();
private:
Pgsql::Connection m_connection;