Commit graph

532 commits

Author SHA1 Message Date
eelke
23165d77c8 Better handling of empty query's. 2019-12-18 19:35:17 +01:00
eelke
47b3ea83e9 Fix show filename in tab after opening file and make F5 execute shortcut
work.
2019-12-03 19:08:13 +01:00
eelke
e53b85bd86 Improved formatting of generated table sql
- Removed empty line before first column
- The follow up lines of fkey's are indented
- The closing parentheses is now on a new line
2019-12-01 07:09:18 +01:00
eelke
2c2253f75e Use (BIG)SERIAL in generated SQL when this was used when column
originally defined.

This is recognized by the fact that the column has a dependency on a
sequence. For columns that happen to have a default which uses a pre
exising sequence the dependency is the other way around.
2019-12-01 06:40:11 +01:00
eelke
817a371220 Removed rangechecked_cast was not working as I hoped. 2019-11-30 16:11:12 +01:00
eelke
404d4c856a range check not working as expected, temporarily disabled 2019-11-25 20:08:19 +01:00
eelke
ec8cec105f Fix crash when query in query tab returns error 2019-11-20 19:18:51 +01:00
eelke
1df8455af5 Add tab with namespaces (schema's) 2019-11-20 19:09:22 +01:00
eelke
8dd13d103e Added dependants tab to table page
Retrieves all foreignkeys pointing to the current table
and shows the tables they are foreignkeys of.
2019-11-17 10:27:11 +01:00
eelke
b90df1cd77 Correctly handle stop request during async connect. 2019-11-09 12:56:02 +01:00
eelke
2c9cda990d The socket should be retrieved within the loop as it is possible
that the socket handle changes.
2019-11-06 20:16:15 +01:00
eelke
6bb5525d5e Switched away from boost::asio as it doesn't play well with libpq 2019-11-06 20:03:27 +01:00
eelke
6dd079bf87 Fix: parameter list always gave missing type error 2019-11-06 18:29:31 +01:00
eelke
f875f0f012 Implementation, tests and first use of rangechecked_cast 2019-11-04 18:02:48 +01:00
eelke
c5f6da48ce Pgsql::Connection::connect functions now all report connection errors
by throwing exception.
2019-11-03 07:58:48 +01:00
eelke
05bca069e3 Fix escaping of special chars for copyAsCString 2019-11-02 14:54:55 +01:00
eelke
5f2857f12a Fix crashes from accessing invalid pointers. 2019-11-02 14:28:48 +01:00
eelke
ead3ce8a8a Show view definition 2019-10-26 13:13:58 +02:00
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