Commit graph

514 commits

Author SHA1 Message Date
eelke
dc949f3c34 Fix crash when trying to save row data when row is not yet valid 2019-10-25 15:40:55 +02:00
Eelke Klein
e891ec9d54 Merge branch 'refresh-crudtab' into 'master'
Crud page has now reload action.

See merge request eelke/pgLab!10
2019-10-13 05:35:47 +00:00
eelke
1a208a6a2d Crud page has now reload action.
F5 key is bound to the execute query, reload catalog and reload crud
actions. By using addAction to add these actions to the relevant pages
the ambiguity of the shortcut is resolved.
2019-10-13 07:31:48 +02:00
Eelke Klein
4278fe6ff4 Merge branch '64-reload-catalog' into 'master'
Resolve "reload catalog"

Closes #64

See merge request eelke/pgLab!9
2019-10-09 17:48:52 +00:00
eelke
39d1a2a00f Sequence page refreshes after catalog reload. 2019-10-09 19:47:35 +02:00
eelke
5c586ea807 List of tables now updates after reload of catalog. 2019-10-09 18:36:54 +02:00
eelke
f4f514efb0 Trigger page now reacts to catalog refreshed. 2019-10-06 14:31:44 +02:00
eelke
211d937c16 Catalog refresh working for functions page. 2019-10-06 14:24:18 +02:00
eelke
23899b6bb6 ConstraintPage now reacts to refreshed signal. 2019-10-06 14:17:07 +02:00
eelke
fa46971930 Index page now correctly responds to reload. 2019-10-06 14:03:46 +02:00
eelke
60d8f36328 poc Add support for reloading the catalog
Reload works and the column page reacts correctly. Others to be checked
and fixed.
2019-10-06 13:52:45 +02:00
eelke
83122e89df fix: comparison that should have been assignment
Didn't cause any bugs because the state was not used after that point
however it would have cause issues when that changed later.
2019-10-06 09:39:11 +02:00
eelke
4ea388cad7 Merge branch 'master' of ssh://git@gitlab.com:/eelke/pgLab.git 2019-10-06 09:34:45 +02:00
Eelke Klein
e896225cd6 Merge branch '61-update-index-sql-when-switching-tables' into 'master'
The normal copy now works for SQL definition views.

Closes #61

See merge request eelke/pgLab!8
2019-10-06 07:31:49 +00:00
eelke
45c3a0480b The normal copy now works for SQL definition views. 2019-10-05 16:41:14 +02:00
Eelke Klein
09bdeedbf4 Merge branch '61-update-index-sql-when-switching-tables' into 'master'
Resolve "Update index sql when switching tables"

Closes #61

See merge request eelke/pgLab!7
2019-10-05 07:12:06 +00:00
eelke
e55b0b7f37 fix: update sql for indexes and constraints
When another table is selected the index and constraint list are
reloaded and have no selection. So the SQL for the selection should be
empty.
2019-10-05 09:09:22 +02:00
Eelke Klein
2c615f3b96 Merge branch '62-missing-or-in-trigger-definitions' into 'master'
Resolve "Missing OR in trigger definitions"

Closes #62

See merge request eelke/pgLab!6
2019-10-05 06:56:00 +00:00
eelke
09d5461d01 Seperate event types in the trigger definition with OR 2019-10-05 08:55:02 +02:00
eelke
06a3e8bdcc Report error instead of aborting the application. 2019-09-26 20:14:57 +02:00
eelke
167f5b1386 throw exception instead of causing access violation 2019-09-26 20:14:35 +02:00
eelke
082293e58a Switched ConnectionConfig to QString from std::string to fit better into Qt framework 2019-09-16 19:24:39 +02:00
eelke
bcfd82c27d Fix crash when starting to add connection.
Caused by uninitialized variable. Commit contains some minor style fixes also.
2019-09-02 16:33:13 +02:00
eelke
7f88b98cdd End user can now specify how long password manager remembers the master key.
Closes $24
2019-09-01 16:06:08 +02:00
eelke
d489f11e52 Store encrypted passwords with connections.
Closes #22 as encrypted password is now deleted as part of the connection record.
2019-09-01 14:07:58 +02:00
eelke
e5ae9663c4 Fix missing return value ConnectionTreeModel::removeRows 2019-09-01 10:26:42 +02:00
Eelke Klein
41c1305e3d Merge branch 'improve-connection-manager' into 'master'
Improve connection manager

See merge request eelke/pgLab!5
2019-09-01 08:19:22 +00:00
eelke
bf8bb087e7 Fix: adding connection
Crashed because it tried to select right group when there was no group to set.
2019-09-01 06:52:26 +02:00
eelke
d9431b173c Cleanup 2019-09-01 06:48:34 +02:00
eelke
91049b235a Send InsertRows signals when adding a group. 2019-09-01 06:48:11 +02:00
eelke
0fb1d89aee When editing connection the dialog is now initialized on the correct connection group. 2019-09-01 06:45:39 +02:00
eelke
2823297482 Fix crash when closing dialoog with X button 2019-09-01 06:43:28 +02:00
eelke
521d3cdaac Add seperate actions for adding and removing connection groups. 2019-09-01 06:42:21 +02:00
eelke
dbb6e1ab01 Can open window for database by clicking on the config in the connection tree. 2019-08-29 16:10:28 +02:00
eelke
b3a98f6dc0 Most of functionality for connections in tree works now. Old list largely removed. 2019-08-27 20:12:00 +02:00
eelke
8840d3bcbb Basic version of ConnectionTreeModel is working. 2019-08-25 15:33:51 +02:00
eelke
3721808df4 Remove unused function 2019-08-25 08:10:37 +02:00
eelke
b65edaa6ee Improved how connection is removed from the configuration file. 2019-08-25 08:00:54 +02:00
eelke
b09e8a6d4b ConnectionManager overhaul
- connection settings are now changed by seperate component currently called in a seperate window
- old settings pane on the right of the connections had been removed
- new edit config button added between new connection and remove connection
2019-08-24 20:47:32 +02:00
eelke
78247c7abe Small cleanup of ConnectionManager 2019-08-23 09:44:06 +02:00
eelke
1792f42dac Improved working of BackupDialog
- improved layout
- automatically switch to output component when start is clicked
- coloured output for succes/error message
- highlighter for pg_dump output that highlights error lines

Note: all output of pg_dump goes to stderr because stdout is reserved for output of the backup data.
2019-08-23 09:43:48 +02:00
eelke
221cc33bb4 Remove unused unit 2019-08-23 09:41:03 +02:00
eelke
b939916b07 Fix incorrect ALTER TABLE statement for columns in the instepctor.
Was caused by incorrect condition for determining the use of IDENTITY.
2019-08-19 19:44:07 +02:00
eelke
b3352b8496 Database window can now be opened from within the connection manager by
double clicking a connection or pressing enter when a connection is selected.
2019-08-19 19:32:40 +02:00
eelke
e4a43a77bd Disable editing of the description of the connections in the connection ListView.
Also replace the integer literals defining the columns for enum to make more readable.
2019-08-19 19:26:39 +02:00
eelke
033d2b3d45 Removed debug statement that gave lot of output and which was not needed anymore. 2019-08-19 16:06:23 +02:00
eelke
48ac8c6bab Improved generation of c/cpp string from query
Extra lines before and after query are removed. Whitespace at end of line
is removed. SQL comments are converted to cpp style comments and are outside
the string literal.

To achieve this the function now uses the SQLLexer to know what is comment.
This also required the additional capability in the lexer to also return whitespace and newline tokens.
Also a few bugs in the lexer were fixed.
2019-08-19 13:52:23 +02:00
eelke
fbd630489e Added paste lang option for pasting programming code.
Expects you to paste only string literals with possible concatenation operators like . or +
2019-08-19 11:38:04 +02:00
eelke
35d1e75d35 Split all connection related controller functionality off into seperate ConnectionController. 2019-08-19 10:05:05 +02:00
eelke
8c13bdc2ef Make closing of tabs work again. 2019-08-16 10:49:59 +02:00