Query, Explain and Cancel are going throught the asyncdbconnection now.
Todo: Notice processing and error reporting.
This commit is contained in:
parent
fce51a7b7e
commit
a36bf5f7f4
11 changed files with 335 additions and 217 deletions
18
mainwindow.h
18
mainwindow.h
|
|
@ -57,12 +57,8 @@ private:
|
|||
|
||||
void connectionStateChanged(ASyncDBConnection::State state);
|
||||
|
||||
// std::unique_ptr<Pgsql::Connection> connection;
|
||||
// std::unique_ptr<QueryResultModel> resultModel;
|
||||
// std::unique_ptr<QueryExplainModel> explainModel;
|
||||
|
||||
// Pgsql::Canceller queryCancel;
|
||||
|
||||
std::unique_ptr<QueryResultModel> resultModel;
|
||||
std::unique_ptr<QueryExplainModel> explainModel;
|
||||
|
||||
// struct {
|
||||
// std::unique_ptr<QSocketNotifier> notifier;
|
||||
|
|
@ -70,17 +66,17 @@ private:
|
|||
// } connectingState;
|
||||
|
||||
// void processNotice(const PGresult *result);
|
||||
// void query_ready(Pgsql::Result res);
|
||||
// void explain_ready(std::shared_ptr<ExplainRoot> explain);
|
||||
void query_ready(std::shared_ptr<Pgsql::Result> res);
|
||||
void explain_ready(std::shared_ptr<ExplainRoot> explain);
|
||||
private slots:
|
||||
|
||||
void startConnect();
|
||||
|
||||
// void performQuery();
|
||||
// void performExplain();
|
||||
void performQuery();
|
||||
void performExplain();
|
||||
// void socket_activate_connect(int socket);
|
||||
|
||||
// void cancel_query();
|
||||
void cancel_query();
|
||||
// void receiveNotice(Pgsql::ErrorDetails notice);
|
||||
|
||||
void processCallableQueue();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue