Commit graph

  • a29671593e Simplified module registration eelke 2019-01-01 08:26:20 +01:00
  • 456180325e Code cleanups eelke 2018-12-31 15:43:22 +01:00
  • b0cd47ef46 Extended the plugin system to allow for dynamic runtime bindings between modules. eelke 2018-12-31 15:20:55 +01:00
  • f996703937 Corrected some usage of QueueTask that was already broken as QueueTask is defunct. eelke 2018-12-31 11:38:54 +01:00
  • 1da8ef7407 Remove all knowledge of DatabaseWindow from CrudTab (unwanted dependency) eelke 2018-12-31 09:51:52 +01:00
  • cc4f309c0f Completed removal of ASyncWindow eelke 2018-12-31 09:40:25 +01:00
  • 424fb5984d Fixed loading of data in CrudModel. eelke 2018-12-31 09:33:34 +01:00
  • 15bee33076 Made step to remove ASyncWindow in favour of usage of Future and FutureWatcher. This should allow concurrency in the plugins to be independent from their container. eelke 2018-12-30 15:46:15 +01:00
  • a54a063c13 DatabaseWindow no longer has to pass the config to QueryTab, QueryTab can now init itself from the supplied context. eelke 2018-12-30 15:44:05 +01:00
  • 2a7e505dbf Made a step in removing knowledge of DatabaseWindow from QueryTab as an effort to move in the direction of a plugin system. eelke 2018-12-29 18:59:54 +01:00
  • f6ea2ce0a6 Introduced own version of QTableView called PgLabTableView that has some other defaults. eelke 2018-12-29 17:54:54 +01:00
  • f0ffcf4abd TablesTableModel now also shows (materialized) views en foreign tables. eelke 2018-12-29 11:19:12 +01:00
  • a0579538df The tablespage now has a namespace filter allowing it to be used for a pg_catalog and information_schema tab. eelke 2018-12-29 10:56:24 +01:00
  • d129876d06 CodeEditor improvements eelke 2018-12-28 15:26:24 +01:00
  • 69473d65d2 Renamed MainWindow to DatabaseWindow so the name tells us the functionality provided by the window. eelke 2018-12-28 12:55:11 +01:00
  • 437736a023 Tab with list of sequences and create sql for selected sequence. eelke 2018-12-28 08:51:02 +01:00
  • 769307c821 Added the trigger definitions to the sql for a table. Also tuned the formatting of the trigger definitions a bit. eelke 2018-12-27 12:15:37 +01:00
  • 4ec4e02411 The SQL tab for a table now also shares the grant/revoke statements for that table (but not yet any column level grants). eelke 2018-12-27 12:07:19 +01:00
  • 93687df959 Removed the acl field from several Pg* classes as the acl is now stored in the PgServerObject base class they inherit from. eelke 2018-12-27 12:05:48 +01:00
  • aaa05f64ef PgTablespace now inherits from PgServerObject. eelke 2018-12-25 17:38:13 +01:00
  • 0b6c1a8544 Make PgAuthId inherit PgServerObject and related changes. eelke 2018-12-25 16:39:58 +01:00
  • c2c01cf431 Generic GRANT/REVOKE generation from ACL's complete. eelke 2018-12-25 13:17:04 +01:00
  • cc0b28e8e0 No need for PgSPtrContainer to store weak pointer to the catalog when its parent already has a reference to the catalog. eelke 2018-12-24 11:33:24 +01:00
  • 3f337b2cca Added typeName function to PgObject as it might be useful for building generic functions. eelke 2018-12-24 11:31:56 +01:00
  • b210c570fc ArrayParser doesn't require the string to be null terminated anymore, instead the length of the string can be passed in. eelke 2018-12-24 08:10:09 +01:00
  • 93c8b49f61 PgServerObject now contains a list of acl's for the object so all the different objects can use this implementation. eelke 2018-12-24 07:51:27 +01:00
  • efb3e71556 The getAsArray and getAsVector function now use StringToArrayElem template for conversion to the array element type. eelke 2018-12-24 07:46:13 +01:00
  • 54d4dfface Improved code generation for functions and procedures. eelke 2018-12-23 19:45:04 +01:00
  • fc58acb252 Added convenience functions to PgLanguage for quickly testing for the standard languages. eelke 2018-12-23 19:43:50 +01:00
  • 471139ba4d Added getResultNoThrow as the AsyncDBCOnnection doesn't like exceptions. eelke 2018-12-23 12:39:53 +01:00
  • 43f8117bbd pg11: pg_proc, type of function is stored differently from pg11 forward eelke 2018-12-23 08:48:45 +01:00
  • a88af1ac11 Improved connection error handling. eelke 2018-12-23 08:43:43 +01:00
  • 646b18ebeb Update tests for moved include files. eelke 2018-12-23 08:42:32 +01:00
  • 6a2c8ec5e0 Do not use flat_set anymore gives compilation issues. eelke 2018-12-23 08:39:38 +01:00
  • 1854a4bdaa Improvements in generated SQL for CREATE FUNCTION eelke 2018-12-22 13:52:19 +01:00
  • f692569d27 Added the list of installed language to the catalog. The ProcTableModel now returns the owner name and language name instead of the oids. eelke 2018-12-17 21:51:14 +01:00
  • c0a11f9b3b Functions page now shows sql for selected function. eelke 2018-12-16 20:40:04 +01:00
  • 31a77a1742 Triggers and Columns page now automatically resize columns to fit contents. eelke 2018-12-16 20:38:57 +01:00
  • 880903db5f Several fixes of warnings/clang tidy eelke 2018-12-16 15:38:32 +01:00
  • 2f527a8380 Sort the list of columns for a table by attnum (creation order). eelke 2018-12-16 12:49:44 +01:00
  • 2aef965787 On the tables page the column tab is now selected by default. eelke 2018-12-16 12:47:31 +01:00
  • e75b0f1a71 Added CollationModel + factory for editing and added to EditTableWidget eelke 2018-12-16 11:35:39 +01:00
  • f0c1035378 Reorganize files in pglablib eelke 2018-12-16 10:17:59 +01:00
  • 56cbeea183 Fix: SelectionEditorFactory::setEditorData incorrectly used default DisplayRole with index.data() while it should use the EditRole. eelke 2018-12-16 09:39:43 +01:00
  • 387c664284 EditColumnTableModel, return typename for displayrole for type column and oid for edit value. eelke 2018-12-16 09:35:57 +01:00
  • 44358d198a PgType now inherits from PgNamespaceObject and PgOwnedObject eelke 2018-12-16 09:24:27 +01:00
  • 742fd0a4d3 SelectionEditorFactory + ItemModel + ItemModelFactory combination is working in new EditTableWidget eelke 2018-12-15 20:27:40 +01:00
  • e44f73166f SelectionEditorFactory for creating combobox selections for use in QTableView. TypeSelectionItemModelFactory to use the TypeSelectionItemModel with above factory. eelke 2018-12-15 15:18:19 +01:00
  • f8d61b61f4 Added capability to create editors from an editor factory to PgLabItemDelegate eelke 2018-12-15 12:11:23 +01:00
  • 62c6ad5bfb Improved support from removing rows in crud tabs. eelke 2018-12-15 11:24:58 +01:00
  • 950fea873c Fix QtCreater error eelke 2018-12-15 11:19:32 +01:00
  • 9e645db1a8 Fixed some small details the analyzer was complaining about. eelke 2018-12-09 21:10:35 +01:00
  • e32c82ac6f Created Pgsql::Transaction class for handling of transactions. It auto rollsback if no commit has been done. eelke 2018-12-09 20:24:11 +01:00
  • 255b2ec970 CrudModel::removeRows now works for count > 1 eelke 2018-12-08 13:55:43 +01:00
  • 266e479344 fkey field is not set for primary keys. eelke 2018-12-08 08:47:02 +01:00
  • 6c76c70a97 The create table statement now lists the inherited tables and inherited columns are commented out. eelke 2018-12-03 21:03:49 +01:00
  • 498233d58c WIP: SQL for creating table and related objects eelke 2018-11-30 18:41:38 +01:00
  • 57217974f4 New column page eelke 2018-11-29 20:21:36 +01:00
  • 73c4cf4790 Rework of catalog objects. Several of them are now inheriting from common base classes that implement common functionality. eelke 2018-11-25 19:45:06 +01:00
  • 840af1e0a9 WIP: Added page showing list of functions. eelke 2018-11-25 09:06:01 +01:00
  • 7db859737a Use catalog instead of catalogue consistently eelke 2018-11-25 09:05:01 +01:00
  • 52011a9842 Updating of detail tabs besides list of tables works correctly again. eelke 2018-11-18 20:24:27 +01:00
  • fcb191f2cc Overview of triggers extended with function name and arguments. eelke 2018-11-18 19:30:45 +01:00
  • 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