eelke
f2808de613
Sequence and Function pages are now properly filtered on namespace.
2019-02-09 20:37:34 +01:00
eelke
b08bd1a315
The trigger SQL now also shows the function definition.
2019-02-09 17:36:37 +01:00
eelke
42432b06a9
Restructuring catalog tabs
...
- Moved detail tabs of table to their own components
- Table list has become seperate component on seperate tab
- Table list does not use designer anymore
- Moved sequences and functions tabs into the catalog inspector
2019-02-09 11:36:22 +01:00
eelke
f130c426a1
Fix error on pg96 because of wrong minimum version
2019-01-01 11:04:48 +01:00
eelke
f0ffcf4abd
TablesTableModel now also shows (materialized) views en foreign tables.
2018-12-29 11:19:12 +01:00
eelke
437736a023
Tab with list of sequences and create sql for selected sequence.
2018-12-28 08:51:02 +01:00
eelke
769307c821
Added the trigger definitions to the sql for a table. Also tuned the formatting of the trigger definitions a bit.
2018-12-27 12:15:37 +01:00
eelke
4ec4e02411
The SQL tab for a table now also shares the grant/revoke statements for that table (but not yet any column level grants).
2018-12-27 12:07:19 +01:00
eelke
93687df959
Removed the acl field from several Pg* classes as the acl is now stored in the PgServerObject base class they inherit from.
2018-12-27 12:05:48 +01:00
eelke
aaa05f64ef
PgTablespace now inherits from PgServerObject.
2018-12-25 17:38:13 +01:00
eelke
0b6c1a8544
Make PgAuthId inherit PgServerObject and related changes.
2018-12-25 16:41:44 +01:00
eelke
c2c01cf431
Generic GRANT/REVOKE generation from ACL's complete.
...
Moved the owned concept to PgServerObject as it is needed for the generic
acl functionality that is also in PgServerObject.
2018-12-25 14:25:15 +01:00
eelke
cc0b28e8e0
No need for PgSPtrContainer to store weak pointer to the catalog when its parent already has a reference to the catalog.
2018-12-24 11:33:24 +01:00
eelke
3f337b2cca
Added typeName function to PgObject as it might be useful for building generic functions.
2018-12-24 11:31:56 +01:00
eelke
93c8b49f61
PgServerObject now contains a list of acl's for the object so all the different objects
...
can use this implementation.
2018-12-24 07:51:27 +01:00
eelke
54d4dfface
Improved code generation for functions and procedures.
...
alter statements for configuration settings
alter statement for owner
2018-12-24 07:41:23 +01:00
eelke
fc58acb252
Added convenience functions to PgLanguage for quickly testing for the standard languages.
2018-12-23 19:43:50 +01:00
eelke
471139ba4d
Added getResultNoThrow as the AsyncDBCOnnection doesn't like exceptions.
2018-12-23 12:39:53 +01:00
eelke
43f8117bbd
pg11: pg_proc, type of function is stored differently from pg11 forward
...
Followed the more structured approach of pg11 in combining the different types into a kind field
when reading from older versions we migrate the old fields to the new field. Change in 11
is because of PROCEDURE support. However full PROCEDURE support will be its own change and is
registered as issue #37
2018-12-23 08:48:45 +01:00
eelke
6a2c8ec5e0
Do not use flat_set anymore gives compilation issues.
...
Not worth the time solving the issue without having prove of a clear benefit of
using flat_set over unordered_set.
2018-12-23 08:41:33 +01:00
eelke
1854a4bdaa
Improvements in generated SQL for CREATE FUNCTION
2018-12-22 13:52:19 +01:00
eelke
f692569d27
Added the list of installed language to the catalog. The ProcTableModel now returns the owner name and language name instead of the oids.
2018-12-17 21:51:14 +01:00
eelke
e75b0f1a71
Added CollationModel + factory for editing and added to EditTableWidget
2018-12-16 11:35:39 +01:00
eelke
f0c1035378
Reorganize files in pglablib
...
The enitities and containers of the catalog now go into catalog subfolder
Models go into model
2018-12-16 11:31:33 +01:00
eelke
56cbeea183
Fix: SelectionEditorFactory::setEditorData incorrectly used default DisplayRole with index.data() while it should use the EditRole.
2018-12-16 09:39:43 +01:00
eelke
44358d198a
PgType now inherits from PgNamespaceObject and PgOwnedObject
2018-12-16 09:24:27 +01:00
eelke
742fd0a4d3
SelectionEditorFactory + ItemModel + ItemModelFactory combination is working
...
in new EditTableWidget
(EditTableWidget is very much WIP)
2018-12-15 20:27:40 +01:00
eelke
e44f73166f
SelectionEditorFactory for creating combobox selections for use in QTableView.
...
TypeSelectionItemModelFactory to use the TypeSelectionItemModel with above factory.
2018-12-15 15:28:33 +01:00
eelke
f8d61b61f4
Added capability to create editors from an editor factory to PgLabItemDelegate
2018-12-15 12:11:23 +01:00
eelke
6c76c70a97
The create table statement now lists the inherited tables and inherited columns are commented out.
2018-12-03 21:03:49 +01:00
eelke
498233d58c
WIP: SQL for creating table and related objects
2018-11-30 18:41:38 +01:00
eelke
57217974f4
New column page
...
Shows SQL for columns ALTER TABLE ... [ADD|DROP] COLUMN combines a selection
of multiple columns into a single alter table.
Show collation in list of columns.
(order of columns isn't what is should be but that should maybe be fixed
by a generic column selection and ordering mechanism that knows what the
default sort should be)
2018-11-29 20:21:36 +01:00
eelke
73c4cf4790
Rework of catalog objects. Several of them are now inheriting from common
...
base classes that implement common functionality.
2018-11-25 19:45:06 +01:00
eelke
840af1e0a9
WIP: Added page showing list of functions.
...
Only list is shown, still working on details.
2018-11-25 09:06:01 +01:00
eelke
7db859737a
Use catalog instead of catalogue consistently
2018-11-25 09:05:01 +01:00
eelke
52011a9842
Updating of detail tabs besides list of tables works correctly again.
...
Had stopped working because the catalog now behaves a little different,
returning nullptr instead of an invalid element.
2018-11-18 20:24:27 +01:00
eelke
fcb191f2cc
Overview of triggers extended with function name and arguments.
...
Did a lot of refactoring on the catalog to keep things clean.
2018-11-18 19:30:45 +01:00
eelke
35813ae926
Added pg_proc table to the catalog. Contains the definition of functions.
...
Also improved the loading code for some catalog tables.
2018-11-17 19:38:07 +01:00
eelke
791db7dd80
Change default type for generating pgLab code to QString
2018-11-17 10:16:48 +01:00
eelke
104ab5de1e
Codegen now supports the database column type in the field template.
...
This allows for inserting it as a comment which is very useful while
tweaking your typemappings as you can see what the input was.
2018-11-17 10:14:31 +01:00
eelke
be0064f730
The codegen now can properly lookup array types.
...
Array type lookup failed previously because the typemapping class was
not yet receiving the list of types from the database. Fix was to pass
this data
2018-11-17 09:47:50 +01:00
eelke
634345b38f
In the column list show foreign key constraint
2018-11-10 13:36:36 +01:00
eelke
e36924c087
Passwords are now saved in a password manager.
...
The password manager uses strong encryption using a key derived from the passphrase using
scrypt key strengthening algorithm. This ensures encryption is performed using a strong key
and that brute forcing the passphrase is time consuming.
If the user loses his passphrase no recovery is possible.
2018-11-08 21:50:49 +01:00
eelke
2230a4bd61
Lot of password related changes all over the place.
...
Password is no longer saved with the connection list.
Password is not entered along with other connection credentials.
Password is now asked for when required.
Still working on saving the password and auto retrieving it from the password manager.
2018-11-04 11:44:40 +01:00
eelke
eefcb8fd51
Add (inherited) to tablespace name when table is using the default tablespace set for the database.
2018-10-07 20:57:52 +02:00
eelke
2a75e86102
Added listing of triggers for selected table (not completely finished).
...
Used slightly different approach. This tab is fully build in source code
using subclasses to adjust behaviour of widgets for reuse in the other tabs.
Uses custom proxy model for filtering triggers for correct table and supporting
out of the box sorting by QTableView.
SqlCodePreview: QPlainTextEditor which sql highlighter and in readonly mode but allows copy.
2018-10-07 19:40:06 +02:00
eelke
446923ebaf
Merge branch 'gen-code-for-query'
...
# Conflicts:
# pglablib/pglablib.pro
2018-09-23 10:44:28 +02:00
eelke
7c7e72ae14
pg_trigger
2018-09-23 10:43:32 +02:00
eelke
092ed67d5e
Working on generating string literals for inclusion in generated code.
2018-09-21 11:41:20 +02:00
eelke
0c3bb27e58
Further improvements to codegeneration the defaultcpp config is now called the PgLab
...
config as it is very specific to the PgLab codebase.
More hard programmed templates moved out of codebuilder to the language config.
2018-09-19 09:55:43 +02:00