Commit graph

  • 4167c483f5 Most seems to work. Multi threading is not optimal however some points use a timeout with select or wait_for to poll a condition at the same time. Eelke Klein 2017-08-23 17:41:10 +02:00
  • c3d604e7b4 Resources (icons on buttons) are compiled and linked Eelke Klein 2017-08-23 13:42:01 +02:00
  • 6a97c0447a Compiles, links and runs (functionality not tested) Eelke Klein 2017-08-23 13:27:23 +02:00
  • 04723a289b Switching to linux for development of pglab. Eelke Klein 2017-08-23 08:10:01 +02:00
  • dd9906dbd8 Several fixes for compilation with gcc (doesn't link) eelke 2017-08-22 12:45:45 +02:00
  • a2f39692a2 Forgot to add untracked files. eelke 2017-03-05 21:25:37 +01:00
  • 73528ca965 Backup functionality working, the UI still needs work. eelke 2017-03-05 21:23:36 +01:00
  • d0ea9dfa0c Moved some parts to a static lib so both the executable and the tests can link to it. eelke 2017-02-26 19:29:50 +01:00
  • 0a809a7288 Type selection for parameters is now sorted and limited to non array and non composite types. eelke 2017-02-20 06:44:15 +01:00
  • dd19077281 Useless message about unsaved files disabled (it closed the window whatever your response). eelke 2017-02-20 06:43:33 +01:00
  • afa80a1125 List of databases shows owner name instead of oid. eelke 2017-02-19 17:41:05 +01:00
  • 874ca664b8 Beter handling of new vs existing files. eelke 2017-02-19 17:40:43 +01:00
  • 4adb78a84e Improved question an error handling when closing and saving query. eelke 2017-02-19 14:46:01 +01:00
  • f5046fbd68 Fix crash when clicking close button with no tabs open. eelke 2017-02-19 14:45:37 +01:00
  • 161de60eb1 Result::tuplesAffected now checks for empty string to prevent triggering slow exception handling. eelke 2017-02-19 14:07:58 +01:00
  • 3af26d915e Can use the parameter list in the query window now. eelke 2017-02-19 11:12:43 +01:00
  • aefc9eb7ba Reenabled support for older windows versions. eelke 2017-02-19 07:21:46 +01:00
  • 2d962334da Added list of databases and roles. eelke 2017-02-18 12:05:48 +01:00
  • 8c077b3d5f Support for explain containing single runtime instead of planning and execution time. eelke 2017-02-18 12:03:52 +01:00
  • 3dff4dade8 Program has an icon now. eelke 2017-02-13 19:51:57 +01:00
  • 14891aa892 Make exe compatible with Windows XP. eelke 2017-02-13 19:51:45 +01:00
  • 612b524151 ServerWindow shows list of databases. eelke 2017-02-13 19:51:19 +01:00
  • e71ef2e6df More case fixes of filenames. eelke 2017-02-12 15:51:36 +01:00
  • 20af12535e The catalogue now loads the list of databases en there is a table model that can show this data. eelke 2017-02-12 14:03:42 +01:00
  • a9430bca1a Case adjustment of several files. eelke 2017-02-12 08:22:08 +01:00
  • 2f95c2f096 Started on window for managing the server. eelke 2017-02-12 08:13:38 +01:00
  • f51105bde0 megamove eelke 2017-02-11 08:08:50 +01:00
  • c2e201f813 Seperated the lexer from the syntax highlighter for automated testing. eelke 2017-02-11 08:03:10 +01:00
  • 254cc82116 Reorder a couple of statements. eelke 2017-02-10 21:01:09 +01:00
  • 8ea0cd8285 Improved parser for syntax highlighting. Also added even more keywords (all from appendix C of the postgresql docs are included now) eelke 2017-02-09 21:54:31 +01:00
  • 8026b5b0fa Added a bunch of SQL keywords to the syntax highlighter. eelke 2017-02-09 18:27:17 +01:00
  • 37e8882a3c New syntax highlighter not complete. Eelke Klein 2017-02-07 21:39:45 +01:00
  • 4364f427bf file rename Eelke Klein 2017-02-06 21:41:45 +01:00
  • 073c62048f Added export of data in CSV format. Eelke Klein 2017-02-05 13:35:41 +01:00
  • df866d7b67 Copy as C string added. Eelke Klein 2017-02-05 08:23:06 +01:00
  • 4a2c6cc396 Miscellaneous changes. Including a copy action. Eelke Klein 2017-02-04 11:55:49 +01:00
  • 242f5464df Added generic copySelectionToClipboard function that takes the selection of a model based tableview and copies the data as CSV to the clipoard. Eelke Klein 2017-02-04 11:54:18 +01:00
  • 798f8f51b9 Completed the implementation of the CsvWriter for use with Copy and Export. Eelke Klein 2017-02-04 11:53:20 +01:00
  • 7a22b4cbea Added Params class for passing query parameters seperatly from the query string. Eelke Klein 2017-02-04 11:52:42 +01:00
  • 468779ba38 Fixed some warnings (left some because they need more attention) Eelke Klein 2017-02-02 07:22:54 +01:00
  • ccae3685ac Documentation Eelke Klein 2017-02-02 07:18:44 +01:00
  • fafda5a07f dead code removal Eelke Klein 2017-02-02 07:07:02 +01:00
  • fd47540ecd Removed early prototype widget. Eelke Klein 2017-02-01 20:11:21 +01:00
  • 5a35fa6a30 Implemented the loading of the list of types into the database catalogue. Eelke Klein 2017-02-01 20:00:25 +01:00
  • 43c3835350 Added some class descriptions and Doxygen config. Eelke Klein 2017-02-01 20:00:03 +01:00
  • 343390ff38 Opening of a window for a database is now done by the MasterController. Eelke Klein 2017-02-01 19:59:07 +01:00
  • 6370050204 Introduced the MasterController as part of working on loading catalogue information. Eelke Klein 2017-02-01 18:01:02 +01:00
  • b6d986051b Query tab will now show multiple data tabs if it get's multiple results with tuples. Eelke Klein 2017-01-25 06:54:21 +01:00
  • 424cbc9e2e Started with classes for keeping track of the database schema. Class to represent the contents of pg_type catalog table. Eelke Klein 2017-01-25 06:52:02 +01:00
  • 202e6e431a Stopwatch check if a label has been set before accessing it. Eelke Klein 2017-01-25 06:51:28 +01:00
  • 56fbd20635 Database layer now support automatic type conversion and the Result has iterator support. Eelke Klein 2017-01-25 06:50:57 +01:00
  • 6e852f466f The querytab now shows the elapsed time of the query using the new stopwatch class. Eelke Klein 2017-01-22 08:50:41 +01:00
  • 7f379f3b80 Moved everything associated with executing and explaining queries to querytab. Eelke Klein 2017-01-21 18:16:57 +01:00
  • 6c268bd774 Also added "Save copy as" Eelke Klein 2017-01-21 08:19:47 +01:00
  • 69ac154b07 FIlename is now remembered and used by save. Save as added. Eelke Klein 2017-01-21 08:09:12 +01:00
  • 35932e7a8d Gives a warning when there are unsaved changes when opening a file or closing the window. Eelke Klein 2017-01-19 17:48:44 +01:00
  • eb06c57141 Better result formatting Eelke Klein 2017-01-18 20:50:53 +01:00
  • 163bb1d513 More aggressive saving of changes to the connections. Also remove connection now removes the connection from the file. Eelke Klein 2017-01-18 20:48:31 +01:00
  • ea30dd9c0e Alvast wat code voor backup/restore bij elkaar gezocht Eelke Klein 2017-01-17 19:04:47 +01:00
  • 2b012b70eb Highlighter verbeterd en uitgebreid. Eelke Klein 2017-01-16 19:53:25 +01:00
  • fa9787adfd After an insert, update, delete the number of rows affected is reported. Eelke Klein 2017-01-16 18:56:07 +01:00
  • 5831f18008 If there is a selection in the query then only that part is Executed or explained. Eelke Klein 2017-01-16 17:31:46 +01:00
  • c555182ddd No line wrap in query editbox. Eelke Klein 2017-01-16 16:51:06 +01:00
  • 81f3d3f1f8 Several shortcuts to query window Eelke Klein 2017-01-16 16:48:40 +01:00
  • cb237b0c52 Fix: some typos and refactoring errors in expected Eelke Klein 2017-01-16 16:47:37 +01:00
  • a32e2c83ca Query, explain, cancel buttons are now enabled/disabled when the state of the connection changes. Eelke Klein 2017-01-15 21:38:07 +01:00
  • 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. Eelke Klein 2017-01-15 21:01:40 +01:00
  • 88fcc0338d Moved icons into a resource file and adjusted the window that used them accordingly. Eelke Klein 2017-01-15 13:49:17 +01:00
  • 998389e371 These are build files and shouldn't have been in the project folder anyway. Eelke Klein 2017-01-15 13:48:40 +01:00
  • ef620489ee project rename to pglab Eelke Klein 2017-01-15 12:58:41 +01:00
  • 7181c7f1e7 The list of connections is now saved and loaded on program shutdown and start. Eelke Klein 2017-01-15 12:27:36 +01:00
  • cf4d6e769b Expected template for returning a value or exception Eelke Klein 2017-01-15 12:26:31 +01:00
  • 023d956365 added: scopeguard template a helper class to call code on scope_exit Eelke Klein 2017-01-15 12:25:58 +01:00
  • 30dbc59e41 Connection manager, editing working, hooked up more widgets. Eelke Klein 2017-01-14 22:29:12 +01:00
  • c235169304 First test with QDataWidgetMapper to connect controls to the items in the connection list is working. Eelke Klein 2017-01-14 22:03:58 +01:00
  • f5eab84c24 Working on the connection manager. Eelke Klein 2017-01-14 20:07:12 +01:00
  • be1892ac52 Wat copy paste code en csvwriter alvast toegevoegd maar nog uitgeschakeld. Eelke Klein 2017-01-13 19:09:58 +01:00
  • cc5bbab0f5 Added menu items for saving, loading, export data, closing window and about. Eelke Klein 2017-01-09 07:39:09 +01:00
  • 2db661b7a6 Fix: crash when closing window while no connection open. Eelke Klein 2017-01-09 07:38:13 +01:00
  • 5e0b8578e2 Fix: do not join the connection thread if it hasn't been started. Eelke Klein 2017-01-08 20:00:34 +01:00
  • 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. Eelke Klein 2017-01-08 19:59:55 +01:00
  • 5f3ddb80c6 Show elapsed time during queries and show execute and plan time above query explain. Eelke Klein 2017-01-08 15:16:16 +01:00
  • 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. Eelke Klein 2017-01-08 15:15:40 +01:00
  • 2502aea9e5 Notices and errors are as before switch might need still some work. Eelke Klein 2017-01-08 10:29:21 +01:00
  • a36bf5f7f4 Query, Explain and Cancel are going throught the asyncdbconnection now. Eelke Klein 2017-01-08 09:58:34 +01:00
  • fce51a7b7e The previous async method's are being updated to the ASyncDBConnection class. Connecting is working. Eelke Klein 2017-01-06 07:23:40 +01:00
  • 2d420c0525 new class: WaitHandleList helper for waiting on multiple events using the Win32 api. Eelke Klein 2017-01-06 07:22:35 +01:00
  • f396965797 Win32Event member names are conforming to the naming style of this project now. Eelke Klein 2017-01-06 07:21:57 +01:00
  • 83064ab86b Added the thread safe TSQueue and using it in mainwindow to replace the adhoc queue implementation. Eelke Klein 2017-01-03 07:22:36 +01:00
  • c551d982c6 Also switched explain over to own async framework. Eelke Klein 2016-12-30 10:38:46 +01:00
  • 4dc55288b5 Asynchronous query execution now depends on my own mostly C++ based parallel execution framework instead of the QMetaObject::invokeMethod. Eelke Klein 2016-12-30 10:25:48 +01:00
  • 2432be9d72 Added cpp style mechanisme to queue callables on window thread. Eelke Klein 2016-12-30 10:14:26 +01:00
  • 8af6bc4ac5 Added explain functionality. Eelke Klein 2016-12-29 13:48:35 +01:00
  • 0d30dc9080 Query is now executed using std::async Eelke Klein 2016-12-27 21:22:49 +01:00
  • 3a8cc3d7f0 Het maken van de DB connectie gebeurd nu asynchroon. Eelke Klein 2016-12-27 15:41:11 +01:00
  • 27abce5a11 Added WSAStartup/Cleanup to main. Eelke Klein 2016-12-27 10:27:44 +01:00
  • edc6df25da Initial commit. Contains a simple query tool. Eelke Klein 2016-12-26 16:06:55 +01:00