Eelke Klein
ccae3685ac
Documentation
2017-02-02 07:18:44 +01:00
Eelke Klein
fafda5a07f
dead code removal
2017-02-02 07:07:16 +01:00
Eelke Klein
fd47540ecd
Removed early prototype widget.
2017-02-01 20:11:21 +01:00
Eelke Klein
5a35fa6a30
Implemented the loading of the list of types into the database catalogue.
2017-02-01 20:09:04 +01:00
Eelke Klein
43c3835350
Added some class descriptions and Doxygen config.
2017-02-01 20:00:03 +01:00
Eelke Klein
343390ff38
Opening of a window for a database is now done by the MasterController.
...
The ConnectionManager just passes on the action now.
2017-02-01 19:59:07 +01:00
Eelke Klein
6370050204
Introduced the MasterController as part of working on loading catalogue information.
...
Need a central piece to manage the catalogue data per database to prevent loading
this multiple times. MasterController is now also used to enable reopening the
connection manager from a query window after the connection manager has been closed.
2017-02-01 18:01:02 +01:00
Eelke Klein
b6d986051b
Query tab will now show multiple data tabs if it get's multiple results
...
with tuples.
2017-01-25 06:54:21 +01:00
Eelke Klein
424cbc9e2e
Started with classes for keeping track of the database schema.
...
Class to represent the contents of pg_type catalog table.
2017-01-25 06:53:30 +01:00
Eelke Klein
202e6e431a
Stopwatch check if a label has been set before accessing it.
2017-01-25 06:51:28 +01:00
Eelke Klein
56fbd20635
Database layer now support automatic type conversion and the Result has iterator support.
...
This also means you can use for each to loop through a result.
2017-01-25 06:50:57 +01:00
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
eb06c57141
Better result formatting
...
Cells holding a NULL value now display null in gray.
int, float and numeric columns are right aligned. Integers, floats and numerics are coloured.
Booleans, green or red for true or false. t, f is replaced by TRUE, FALSE
2017-01-18 20:50:53 +01:00
Eelke Klein
163bb1d513
More aggressive saving of changes to the connections. Also remove connection
...
now removes the connection from the file.
2017-01-18 20:48:31 +01:00
Eelke Klein
ea30dd9c0e
Alvast wat code voor backup/restore bij elkaar gezocht
2017-01-17 19:16:51 +01:00
Eelke Klein
2b012b70eb
Highlighter verbeterd en uitgebreid.
2017-01-16 19:53:25 +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
c555182ddd
No line wrap in query editbox.
2017-01-16 16:51:06 +01:00
Eelke Klein
81f3d3f1f8
Several shortcuts to query window
...
Ctrl+O open
Ctrl+S save
F5 run query
Shift+F7 explain analyze
Alt+Pause cancel query/explain
2017-01-16 16:48:40 +01:00
Eelke Klein
cb237b0c52
Fix: some typos and refactoring errors in expected
2017-01-16 16:47:37 +01:00
Eelke Klein
a32e2c83ca
Query, explain, cancel buttons are now enabled/disabled when the state of the connection changes.
2017-01-15 21:38:07 +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
88fcc0338d
Moved icons into a resource file and adjusted the window that used them accordingly.
2017-01-15 13:49:17 +01:00
Eelke Klein
998389e371
These are build files and shouldn't have been in the project folder anyway.
2017-01-15 13:48:40 +01:00
Eelke Klein
ef620489ee
project rename to pglab
2017-01-15 12:58:41 +01:00
Eelke Klein
7181c7f1e7
The list of connections is now saved and loaded on program shutdown and start.
2017-01-15 12:27:36 +01:00
Eelke Klein
cf4d6e769b
Expected template for returning a value or exception
2017-01-15 12:26:31 +01:00
Eelke Klein
023d956365
added: scopeguard template a helper class to call code on scope_exit
2017-01-15 12:25:58 +01:00
Eelke Klein
30dbc59e41
Connection manager, editing working, hooked up more widgets.
2017-01-14 22:29:12 +01:00
Eelke Klein
c235169304
First test with QDataWidgetMapper to connect controls to the items in the connection list is working.
2017-01-14 22:03:58 +01:00
Eelke Klein
f5eab84c24
Working on the connection manager.
...
Made a list model for displaying them in a list. Also added controles to edit
the most important properties.
2017-01-14 20:07:12 +01:00
Eelke Klein
be1892ac52
Wat copy paste code en csvwriter alvast toegevoegd maar nog uitgeschakeld.
2017-01-13 19:09:58 +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
2db661b7a6
Fix: crash when closing window while no connection open.
2017-01-09 07:38:13 +01:00
Eelke Klein
5e0b8578e2
Fix: do not join the connection thread if it hasn't been started.
2017-01-08 20:00:34 +01:00
Eelke Klein
726d67bc30
When more then 10 seconds has elapsed the timers switches to a self adjusting
...
algorithm so it keeps ticking at exactly once a second.
2017-01-08 19:59:55 +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
30638b11e5
Fix: high cpu loading while waiting for result caused by wrong event selection
...
Fix: next bug where it wouldn't retrieve all result when using the proper
events causing hangs because it didn't loop isbusy.
2017-01-08 15:15:40 +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
2d420c0525
new class: WaitHandleList helper for waiting on multiple events using the Win32 api.
2017-01-06 07:22:35 +01:00
Eelke Klein
f396965797
Win32Event member names are conforming to the naming style of this project now.
2017-01-06 07:21:57 +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