Eelke Klein
6e852f466f
The querytab now shows the elapsed time of the query using the new stopwatch class.
...
The old elapsedtime code from the mainwindow has been removed.
2017-01-22 08:50:41 +01:00
Eelke Klein
7f379f3b80
Moved everything associated with executing and explaining queries to querytab.
...
It is now possible to create multiple independent query tabs. However
somethings are currently a bit broken.
2017-01-21 18:16:57 +01:00
Eelke Klein
6c268bd774
Also added "Save copy as"
...
This prompts for a new filename but it keeps remembering the previous name.
2017-01-21 08:19:47 +01:00
Eelke Klein
69ac154b07
FIlename is now remembered and used by save. Save as added.
2017-01-21 08:09:12 +01:00
Eelke Klein
35932e7a8d
Gives a warning when there are unsaved changes when opening a file or closing the window.
2017-01-19 17:48:44 +01:00
Eelke Klein
fa9787adfd
After an insert, update, delete the number of rows affected is reported.
...
This also makes it clearer the command was executed succesfully.
Times are now printed with no more then two decimals. This prevents confusion
between thousand and decimal seperators.
2017-01-16 18:57:50 +01:00
Eelke Klein
5831f18008
If there is a selection in the query then only that part is Executed or explained.
...
Replaced QTextEdit with QPLainTextEdit as it is more efficient and CAN do syntax highlighting.
2017-01-16 17:31:46 +01:00
Eelke Klein
d19741f111
Connection manager can now open a query window for selected connection.
...
Query window has now buttons with icons made in the designer for better looks.
Depending on received responses from the database the tabcontrol with the message, data and explain tab
now switches to the appropriate tab.
2017-01-15 21:01:40 +01:00
Eelke Klein
cc5bbab0f5
Added menu items for saving, loading, export data, closing window and about.
...
Saving and loading of SQL and close is implemented.
2017-01-09 07:39:09 +01:00
Eelke Klein
5f3ddb80c6
Show elapsed time during queries and show execute and plan time above query explain.
2017-01-08 15:16:16 +01:00
Eelke Klein
2502aea9e5
Notices and errors are as before switch might need still some work.
2017-01-08 10:29:52 +01:00
Eelke Klein
a36bf5f7f4
Query, Explain and Cancel are going throught the asyncdbconnection now.
...
Todo: Notice processing and error reporting.
2017-01-08 09:58:34 +01:00
Eelke Klein
fce51a7b7e
The previous async method's are being updated to the ASyncDBConnection class. Connecting is working.
2017-01-06 07:23:40 +01:00
Eelke Klein
83064ab86b
Added the thread safe TSQueue and using it in mainwindow to replace the adhoc queue implementation.
2017-01-03 07:22:36 +01:00
Eelke Klein
c551d982c6
Also switched explain over to own async framework.
2016-12-30 10:38:46 +01:00
Eelke Klein
4dc55288b5
Asynchronous query execution now depends on my own mostly C++ based parallel
...
execution framework instead of the QMetaObject::invokeMethod.
2016-12-30 10:25:48 +01:00
Eelke Klein
2432be9d72
Added cpp style mechanisme to queue callables on window thread.
2016-12-30 10:14:26 +01:00
Eelke Klein
8af6bc4ac5
Added explain functionality.
...
Uses json format with jsoncpp as a parser. Then show it in a QTreeView.
Shows inclusive/exclusive times like explain.despesz does. Also a similar
coloring scheme as applied.
2016-12-29 13:48:35 +01:00
Eelke Klein
0d30dc9080
Query is now executed using std::async
2016-12-27 21:22:49 +01:00
Eelke Klein
3a8cc3d7f0
Het maken van de DB connectie gebeurd nu asynchroon.
2016-12-27 15:41:11 +01:00
Eelke Klein
edc6df25da
Initial commit. Contains a simple query tool.
2016-12-26 16:06:55 +01:00