eelke
aac55b0ed1
Store connection configuration as key value pairs
...
Add migration for the sqlite database.
Because the Qt SQL library is a bit hard to work with use sqlite through custom wrapper.
2025-02-22 19:59:24 +01:00
eelke
4caccf1000
Basic support for passing postgresql uri on the commandline
2025-02-17 18:09:19 +01:00
eelke
39927bbadf
Turn PgAttribute::Key into class instead of alias for a std::tuple.
...
This improves readability as the fields are now named instead of numbered.
2024-04-13 09:06:51 +02:00
eelke
5bdd3fa95d
Improve conversion of bytes to human readable string
...
Fixes issues like showing 0 MiB when the value is just slightly less then 1 MiB.
2024-04-12 13:26:10 +02:00
eelke
3cc28231f9
Support expressions as partitioning keys
2023-03-21 16:20:25 +01:00
eelke
2c899bd799
Generate PARTITIONED BY SQL for partitioned tables.
...
Expressions not yet supported.
2023-02-06 20:31:00 +01:00
eelke
61f90668d8
Fix DROP sql for partitioned table.
2023-01-30 20:08:24 +01:00
Eelke Klein
2ff9577d41
The table inheritance works mostly
2023-01-24 17:47:52 +00:00
eelke
ccd88d0578
Show in constraint list and in generated SQL when a constraint is inherited
2023-01-21 10:27:17 +01:00
eelke
60fb4ce285
Improve support for declarative partitioning.
...
Generated SQL for a partition is now correct (atleast for simple cases)
Switched to C++ 20 so the ranges library can be used in this case
to filter unwanted items.
2023-01-18 19:43:12 +01:00
eelke
33319e3461
Fix reading from catalog so that information about declarative partitioning is read correctly
...
(View and SQL generation still need fixes)
2023-01-07 07:44:33 +01:00
Eelke Klein
9277731c4e
Resolve "Improve GENERATED support"
2022-09-06 11:17:18 +00:00
eelke
da19c46d5e
Improve editing of connection password
...
Previously only a new password was saved if the save password checkbox was checked, Which always
started in the unchecked state. Now when editing existing connection the save password checkbox now
reflects if a password has been saved. Only when the password field is edited the program will update
the saved password. If the save password checkbox is unchecked then clear the save password.
2022-09-05 14:35:45 +02:00
eelke
4fa2189b27
Added the capability to reset the password manager
...
Also some documentation about the password manager.
2022-09-05 07:33:08 +02:00
eelke
bb0e08461a
cleanup
2022-09-03 09:36:04 +02:00
eelke
80272e81c3
Improve error handling
2022-08-17 18:18:10 +02:00
eelke
457b09f15c
Improved error reporting
2022-08-14 08:04:21 +02:00
eelke
6d05c6d75a
Improve escaping routine, no need to resort to using the E prefix just doubling the quotes should be enough.
2022-07-08 19:53:45 +02:00
eelke
8b671090a0
Big cleanup
2022-05-26 08:25:31 +02:00
eelke
d3080a08bb
WIP createdb dialog
2022-05-24 18:57:28 +02:00
eelke
a7d4a5f13d
build fixes
...
# Conflicts:
# pglablib/sqlast/SelectList.h
2022-05-24 18:56:39 +02:00
eelke
14b5293dea
refactor table sql generation
2022-01-21 18:53:47 +01:00
eelke
3158a4364b
Show SQL for database
...
Also improvements to the SQL for tables and views.
2022-01-20 20:13:56 +01:00
eelke
b5a706a2a2
lazy load the database sizes only when needed by the server inspector.
2022-01-19 19:10:05 +01:00
eelke
39195153cd
Retrieve tables sizes asynchronously when opening the catalog.
2022-01-18 18:45:14 +01:00
eelke
87cfb84997
Make saving of the entered password work to.toStdString
...
Also when testing a preexisting connection config it will now decode a potential stored password.
2021-07-04 19:33:06 +02: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
45795333f2
Generate COMMENT IS statements for columns
2021-07-02 20:42:32 +02:00
eelke
97b24a8bf3
fix must explicitly specify table with oid for older pg versions
2021-04-15 16:27:48 +02:00
eelke
5a70749308
leave out database sizes for databases the user cannot connect to
...
this prevents permissions errors.
2021-04-14 19:40:07 +02:00
eelke
fd5ad9bbf0
On the list of indexes of a table show which were created as part of the creation of a constraint
...
The explicit column is true when the index was manually created
In SQL only a comment is given that the index was implicitly created
2021-04-11 07:56:37 +02:00
eelke
d12fb60af8
When exporting data add a header row
2021-04-10 09:48:48 +02:00
eelke
4c175d8c2c
Added page with the types (no details yet)
2021-04-01 14:58:42 +02:00
eelke
bdef76ed8a
Fix errors on PG 9.5 en 9.6 (maybe other versions to)
...
Closes #68
2021-04-01 14:55:20 +02:00
eelke
f21a59e030
Display comments in the list of databases
2021-03-11 06:59:31 +01:00
eelke
2724586f4e
Server window database tab tweaks
...
- Encoding as string instead of id
- Tablespace name instead of id
- Database list sorting enabled
- Database size
2021-03-10 20:49:03 +01:00
eelke
11459e1e12
Show sizes
...
table, index, toast and total size per Table
size of each index
2021-03-10 19:06:40 +01:00
eelke
d6aeef492d
comments on columns
...
Show the comments in the list of columns of a table.
Generate SQL to set them.
2021-03-08 17:23:34 +01:00
eelke
9d58af8cd2
comments on tables
...
Show them in the list of tables.
Genereate SQL to set the comment.
2021-03-08 16:59:13 +01:00
eelke
7fbc828326
misc stuff
2021-03-06 13:15:17 +01:00
eelke
423043d431
Qt6 migration
2021-03-06 13:13:31 +01:00
eelke
87553b2554
fix missing typmod in generated sql
...
ie the max length of a varchar or the scale and precision of a numeric
closes #66
2020-10-15 19:21:44 +02:00
eelke
2faedca137
fix missing when condition
...
closes #65
Most likely didn't work with postgresql 11 and higher
2020-10-15 19:14:03 +02:00
eelke
7734661d26
missing includes
...
technically it was wrong all the time but it only showed up with newer visual c++ compiler.
2020-10-15 19:12:11 +02:00
eelke
adb44fc157
THe QueryTool now reconnects when the connection is lost.
2020-04-04 07:49:44 +02:00
eelke
b87f587a40
ASyncDBConnectionThread now reports back when it looses the connection
2020-04-04 07:34:31 +02:00
eelke
d6709a1dea
hash(QString) is now defined by Qt
2020-04-04 07:34:06 +02:00
eelke
23165d77c8
Better handling of empty query's.
2019-12-18 19:35:17 +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