Commit graph

  • 35813ae926 Added pg_proc table to the catalog. Contains the definition of functions. eelke 2018-11-17 19:38:07 +01:00
  • d8fc14c823 Added mapping of char to db oids. eelke 2018-11-17 19:37:02 +01:00
  • 3b8d0e40c4 Commented out code removed eelke 2018-11-17 19:36:32 +01:00
  • e23164c98c Pgsql::Col has now stream operator overload for boost::container::small_vector eelke 2018-11-17 19:36:12 +01:00
  • f2639b9ea5 Link with new builds of botan eelke 2018-11-17 19:33:47 +01:00
  • f40b9e4c84 Fix: the stream operator for values to optionals crashed eelke 2018-11-17 19:32:55 +01:00
  • 6313a5a918 Made behaviour of getAsArray versions and getAsVector more consistent. eelke 2018-11-17 16:24:12 +01:00
  • 791db7dd80 Change default type for generating pgLab code to QString eelke 2018-11-17 10:16:48 +01:00
  • 104ab5de1e Codegen now supports the database column type in the field template. eelke 2018-11-17 10:14:31 +01:00
  • be0064f730 The codegen now can properly lookup array types. eelke 2018-11-17 09:47:50 +01:00
  • 287073afdc Added remember option to password dialog. eelke 2018-11-15 19:24:29 +01:00
  • f432c2aa68 bugfix: editing of table contents didn't work correctly after reloading the data eelke 2018-11-14 19:17:29 +01:00
  • 24751f81dd Improved PasswordPromptDialog eelke 2018-11-11 12:30:53 +01:00
  • 634345b38f In the column list show foreign key constraint eelke 2018-11-10 13:36:36 +01:00
  • 8836611b62 Replace dubious auto conversion with explicit conversion. eelke 2018-11-10 11:37:17 +01:00
  • cfc218c43b Added to functions to Pgsql::Result to help in doing smart things based on a result. eelke 2018-11-10 11:36:35 +01:00
  • f629e48a85 Position of error marks is adjusted for selection. eelke 2018-11-10 10:59:52 +01:00
  • b0718258c9 Merge branch 'safely-store-passwords' into 'master' Eelke Klein 2018-11-10 06:50:10 +00:00
  • e36924c087 Passwords are now saved in a password manager. eelke 2018-11-08 21:50:49 +01:00
  • 2230a4bd61 Lot of password related changes all over the place. eelke 2018-11-04 11:26:20 +01:00
  • 6b9b602c64 Replaced old PasswordManager code with code using Botan's new PSK_Database eelke 2018-11-04 11:24:13 +01:00
  • 1ae9a1151a All the detail tabs on the TablePage now update when the sort order of the table list changes. eelke 2018-10-21 13:47:38 +02:00
  • d4d8316917 Collection of minor code improvements. eelke 2018-10-21 13:46:58 +02:00
  • 38ae5f50e4 Moved code from TablesPage into seperate PropetiesPage component eelke 2018-10-20 10:58:42 +02:00
  • b8cfb223be Switch of wordwrap in CodeEditor and SqlCodePreview eelke 2018-10-08 18:43:56 +02:00
  • eefcb8fd51 Add (inherited) to tablespace name when table is using the default tablespace set for the database. eelke 2018-10-07 20:57:52 +02:00
  • 2a75e86102 Added listing of triggers for selected table (not completely finished). eelke 2018-10-07 19:40:06 +02:00
  • 446923ebaf Merge branch 'gen-code-for-query' eelke 2018-09-23 10:44:28 +02:00
  • 7c7e72ae14 pg_trigger eelke 2018-09-23 10:43:32 +02:00
  • ae86fef2b4 Merge branch 'gen-code-for-query' into 'master' Eelke Klein 2018-09-23 08:38:07 +00:00
  • bab75d1671 Merge branch 'cherry-pick-da45929b' into 'master' Eelke Klein 2018-09-21 09:43:46 +00:00
  • 5a2e28b6d9 Fix SqlLexer test eelke 2018-09-09 14:20:30 +00:00
  • 092ed67d5e Working on generating string literals for inclusion in generated code. eelke 2018-09-21 11:41:20 +02:00
  • 0c3bb27e58 Further improvements to codegeneration the defaultcpp config is now called the PgLab config as it is very specific to the PgLab codebase. eelke 2018-09-19 09:55:43 +02:00
  • 0ba632afd1 The getAsArray variation that uses a default value for NULL elements crashed when the array value itself was NULL. eelke 2018-09-19 08:45:01 +02:00
  • 8d3bddfa1e Moved implementations from header to cpp. eelke 2018-09-19 08:25:58 +02:00
  • e4ccd93b09 Better support for boost::optional in database layer. eelke 2018-09-19 08:25:23 +02:00
  • 780d912cd1 Adjusted project files for new boost version. eelke 2018-09-18 20:24:54 +02:00
  • f5145f36ed wip: codegenerator, basic widget present for showing the generated code and specifying parameters. Some code is also generated but it is not complete yet. eelke 2018-09-18 11:53:19 +02:00
  • daf9536bed Moved typemapping test code to its own unit so it is clearer that the tests exist eelke 2018-09-18 07:45:49 +02:00
  • c13bbde2e4 Put the FormatToStream function in its own compilation unit as it might be useful for other things to. eelke 2018-09-17 15:42:55 +02:00
  • 22bad8fb22 Added name mangling tests. eelke 2018-09-17 15:41:47 +02:00
  • 8f4845d4d2 Lot of code for generating code. Working on unit tests. eelke 2018-09-09 18:52:32 +02:00
  • da45929b12 Fix SqlLexer test eelke 2018-09-09 16:20:30 +02:00
  • 425f4eccbe Merge branch 'flexible-models' into 'master' Eelke Klein 2018-09-02 10:30:30 +00:00
  • 8b7bbec807 Flexible models Eelke Klein 2018-09-02 10:30:30 +00:00
  • e8f81557bb Simplify connecting QItemSelection::currentRowChanged to PropertyProxyModel::activeRow eelke 2018-09-02 12:28:56 +02:00
  • 0cef509771 Correct tablespace names are now shown in the list of tables. eelke 2018-08-27 21:14:57 +02:00
  • 7630723b69 Switched TablesTableModel to rely on the PgLabDelegate for formatting instead of the old model base class. eelke 2018-08-27 21:12:27 +02:00
  • a4054ed789 Introduced global enum to keep track of custom roles we want to use in our datamodels. eelke 2018-08-26 15:18:32 +02:00
  • ad4c6fd442 The PropertyProxyModel now properly maps the second column to the active row of the source. It has a slot to receive the activeRow. Used this in the TablesPage to let the property tab follow the currentIndex in the list of tables. eelke 2018-08-26 07:59:15 +02:00
  • c6faafec59 Renamed HorizontalProxyModel to PropertyProxyModel as the original name didn't reflect what we are going to morph it into. eelke 2018-08-26 07:14:25 +02:00
  • 3080523b0d First step in using HorizontalProxyModel to show selected row in properties table. eelke 2018-08-26 07:11:46 +02:00
  • 49f009bdf9 Fix two warnings + some documentation in comment eelke 2018-08-26 07:08:44 +02:00
  • 68a1a8e7c9 Addded HorizontalProxyModel which is used to effictively rotate a table 90 degrees. eelke 2018-08-25 18:14:08 +02:00
  • 50cb21b6f9 The list of indexes on a table now also shows the access method (ie btree) eelke 2018-08-25 18:11:12 +02:00
  • 7c4f1a4752 fix: the source views for constraints and indexes are now cleared when the model is reset as this will clear all selections. eelke 2018-08-05 11:57:27 +02:00
  • f1020ac56e Index DROP and CREATE statements are now shown. eelke 2018-08-05 11:27:05 +02:00
  • 78a6666839 WIP moving actions for toolbar to module system. eelke 2018-08-05 09:07:12 +02:00
  • f5e9c4b74e Added column number to list of columns of table. eelke 2018-08-05 09:05:56 +02:00
  • 31afc6fcbf Fix some warning eelke 2018-08-05 09:05:24 +02:00
  • ec8c3ff5ec The list of tables can now be sorted by either name,schema or schema,name by clicking on the column headers. eelke 2018-07-07 09:57:59 +02:00
  • 5b20f900fc Sketched rough parser code construction including some SQL AST classes. eelke 2018-06-19 19:52:56 +02:00
  • f3898599fd design docs eelke 2018-05-20 13:44:04 +02:00
  • 4dd526f32a Icons on action supplied by the PlgPages. eelke 2018-05-20 13:42:30 +02:00
  • 3d516e6006 First tab at building a mechanism where tabpages can supply a list of actions that are added to the global main toolbar. eelke 2018-05-14 20:24:41 +02:00
  • c2d725ec6d Ask confirmation before removing connection. eelke 2018-04-30 20:17:44 +02:00
  • d67224858d Focus query editor when opening new querytab. eelke 2018-04-21 14:36:33 +02:00
  • 8cb1d6eab3 Permission denied errors are now being ignored while reading the system catalog. eelke 2018-04-21 10:50:04 +02:00
  • 65c3d9f2b4 getTypeDisplayString now better handles zero oid's and oid's that are not known in the catalog. eelke 2018-04-21 10:23:28 +02:00
  • 51d72c7f20 Can close CRUD tabs now eelke 2018-04-10 20:21:50 +02:00
  • 45b7d4fcbc show location of error in gutter and as selection eelke 2018-04-09 21:44:00 +02:00
  • 47ee1857cd Added a gutter and currentline highlighting to the SQL editor. eelke 2018-04-08 09:07:43 +02:00
  • 5e83094e6a Improved way sockets are closed. eelke 2018-04-08 09:06:05 +02:00
  • 61645d44ac Show moer information about the indexes. eelke 2018-04-08 09:04:38 +02:00
  • 8c20bd6a02 Added delete support to the CRUD system. eelke 2018-04-08 09:02:22 +02:00
  • 36f5153091 Only allow editing of tables that have a primary key. eelke 2018-02-18 12:10:09 +01:00
  • 09d5c1e41a The crud now support inserting new rows eelke 2018-02-18 08:37:59 +01:00
  • c51bd7594d Data in crud table wasn't shown as it was supposed to. eelke 2018-02-18 08:32:38 +01:00
  • 2ba68d4edc fix: editing same row only updated the view for first edit eelke 2018-02-18 07:23:59 +01:00
  • 628c16e2f4 Updating rows kinda works. eelke 2018-02-18 07:15:43 +01:00
  • 99d738ee65 Added some classes from a stackoverflow to utilize Qt's concurrency functions especially cancellable QFuture's eelke 2018-02-14 19:18:51 +01:00
  • ad3f605ada Some rudementary refresh support in crud tab bound to execute action (should be replaced with dynamic action list on form) eelke 2018-02-05 22:40:17 +01:00
  • 914d2fe9fa Lexical analyzer should now be less confused by dots and comma's and an assortment of other single character symbols. eelke 2018-02-05 22:23:28 +01:00
  • 44326da564 Fix: boolean values from query result were always shown as true. eelke 2018-02-05 21:47:21 +01:00
  • d626c19e14 Basic support for update in Crud implementation, error reporting and transfering data to modified set is still missing. eelke 2018-02-05 21:42:54 +01:00
  • 3fb32f1200 Couple of minor changes. eelke 2018-01-15 13:32:18 +01:00
  • e1405d5370 Use PgLabItemDelegate for indexes tab. eelke 2018-01-15 13:31:37 +01:00
  • 07c1b63d44 Tab of crud view now shows name of the table. eelke 2018-01-15 13:31:06 +01:00
  • a543ccb021 CrudTab uses new PgLabItemDelegate, no need anymore for CrudModel to inherit BaseTableModel. eelke 2018-01-15 13:30:30 +01:00
  • 208883462c QueryResultModel inherits from QAbstractTableModel now instead of BaseTableModel and the tableview now gets a custom delegate. eelke 2018-01-15 12:23:41 +01:00
  • 3ac1d21728 Implemented a custom delegate that does the samework as the BaseTableModel class did. eelke 2018-01-15 12:21:24 +01:00
  • 2ba27178a2 Double clicking a table now opens a CRUD page for that table however data cannot be changed yet thought it will display an editbox. eelke 2018-01-09 20:39:43 +01:00
  • abd4020ddf Decided to use signal slot mechanism eelke 2018-01-08 20:54:03 +01:00
  • 14ab400ccb Bezig met crudmodel/tab eelke 2018-01-08 20:45:52 +01:00
  • ee321b3fb1 Bunch of tests were in header files so they all got compiled when main got compiled. eelke 2018-01-07 09:18:51 +01:00
  • c23282cc7a Folder restructuring of test projects. eelke 2018-01-07 09:15:21 +01:00
  • a79357db87 Tables are now sorted by not perfect yet. eelke 2018-01-07 09:02:53 +01:00
  • ec78dafa94 Removed on_ from the name of the slots to prevent warning about not being able to find the signals. eelke 2018-01-06 21:33:24 +01:00
  • 97d4e2a1a4 Created IndexModel for displaying the indexes on a table. Constraints can now show the SQL to drop and create them. eelke 2018-01-06 21:22:22 +01:00