Big cleanup
This commit is contained in:
parent
d3080a08bb
commit
8b671090a0
55 changed files with 214 additions and 3967 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue