Commit graph

32 commits

Author SHA1 Message Date
eelke
06504ecc1f Improvements to the CrudModel
The new data of modified rows is now stored directly within the row_mapping
also changed how new rows are handled so the new empty row for inserting
is not a special case but is part of the list.
2022-01-22 16:22:29 +01:00
eelke
c00a0452d1 Added ability to test the connection in the dialog where the connection details are entered. 2021-07-04 16:45:50 +02: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
c5f6da48ce Pgsql::Connection::connect functions now all report connection errors
by throwing exception.
2019-11-03 07:58:48 +01: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
082293e58a Switched ConnectionConfig to QString from std::string to fit better into Qt framework 2019-09-16 19:24:39 +02:00
eelke
456180325e Code cleanups 2018-12-31 15:45:53 +01:00
eelke
cc4f309c0f Completed removal of ASyncWindow 2018-12-31 09:40:25 +01:00
eelke
424fb5984d Fixed loading of data in CrudModel. 2018-12-31 09:33:34 +01:00
eelke
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.

Contains also some work on the system for registering plugins.
2018-12-30 15:46:15 +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
a88af1ac11 Improved connection error handling.
Just returning a boolean is too limiting. Using expection instead to easily pass on error message.
2018-12-23 08:43:43 +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
62c6ad5bfb Improved support from removing rows in crud tabs.
It can handle now complex selections and reports back errors encountered
when removing the rows fails.
2018-12-15 11:24:58 +01:00
eelke
950fea873c Fix QtCreater error
(msvc accepts it but it is an error according to gcc and clang)
2018-12-15 11:19:32 +01:00
eelke
255b2ec970 CrudModel::removeRows now works for count > 1
This allows for efficient removal of blocks of rows. If you would remove
row by row the repeated beginRemoveRows and endRemoveRows calls will generate
additional overhead.
2018-12-08 13:55:43 +01:00
eelke
266e479344 fkey field is not set for primary keys.
Caused no problems because it just didn't reserve space. So the only side effect
was slightly reduced performance.
2018-12-08 08:47:02 +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
7db859737a Use catalog instead of catalogue consistently 2018-11-25 09:05:01 +01:00
eelke
f432c2aa68 bugfix: editing of table contents didn't work correctly after reloading the data
Was caused by then pending and modified rows list not being reset so they were out
of sync with the data.
2018-11-14 19:17:29 +01:00
eelke
8836611b62 Replace dubious auto conversion with explicit conversion. 2018-11-10 11:37:17 +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
8c20bd6a02 Added delete support to the CRUD system. 2018-04-08 09:03:03 +02:00
eelke
36f5153091 Only allow editing of tables that have a primary key. 2018-02-18 12:10:09 +01:00
eelke
09d5c1e41a The crud now support inserting new rows 2018-02-18 08:37:59 +01:00
eelke
c51bd7594d Data in crud table wasn't shown as it was supposed to. 2018-02-18 08:32:38 +01:00
eelke
2ba68d4edc fix: editing same row only updated the view for first edit
Was programming error emplace only inserts new keys into map if key exists it fails.
Neede to use insert_or_assign to get desired behaviour.
2018-02-18 07:23:59 +01:00
eelke
628c16e2f4 Updating rows kinda works.
Blocking calls are still used.
2018-02-18 07:15:43 +01:00
eelke
d626c19e14 Basic support for update in Crud implementation, error reporting and transfering data to modified set is still missing. 2018-02-05 21:42:54 +01:00
eelke
a543ccb021 CrudTab uses new PgLabItemDelegate, no need anymore for CrudModel to inherit BaseTableModel. 2018-01-15 13:30:30 +01:00
eelke
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. 2018-01-09 20:39:43 +01:00
eelke
14ab400ccb Bezig met crudmodel/tab 2018-01-08 20:45:52 +01:00