665 Commits

Author SHA1 Message Date
Matthias Kuhn
0afe134076 Noqa 2020-05-05 23:43:27 +02:00
Matthias Kuhn
9eae0caa09 Add missing imports 2020-05-05 22:39:16 +02:00
Matthias Kuhn
a7e0831dcf Code style 2020-05-05 22:38:37 +02:00
José de Paula Rodrigues Neto Assis
304a3d9509 Comment clarifying query against pg_catalog 2020-04-26 15:02:43 -03:00
José de Paula Rodrigues Neto Assis
689bcc6020 Handle CONSTRAINT TRIGGER on DB Manager/PostgreSQL.
Fixes #35967
2020-04-24 11:27:43 -03:00
Long Huan
f3c8a27743 Update CMakeLists.txt 2020-04-24 14:46:06 +10:00
Long Huan
70eccf30ac SET CMAKE_AUTORCC ON 2020-04-24 14:46:06 +10:00
Alexander Bruy
88a9bea48a add missed comma 2020-04-20 09:34:26 +03:00
Alexander Bruy
9a6b0f58f5 [dbmanager] syntax highlighting for PostGIS raster fucntions (fix #16010) 2020-04-20 09:28:17 +10:00
Martin Dobias
53075848ce
Merge pull request #35341 from wonder-sk/vector-tile-layer
[FEATURE] Vector tile layer - part 1
2020-04-02 16:06:30 +02:00
Juergen E. Fischer
fd036d6d5e transifex issue: exclude keywords from db manager query builder translation 2020-03-31 14:49:44 +02:00
Martin Dobias
5ec1890643 Moved to proper QgsMapLayer subclass + icon + optional tile borders 2020-03-27 12:08:40 +01:00
Alexander Bruy
c5841c34fd
Merge pull request #33910 from alexbruy/dbmanager-import-clear
[dbmanager] clear create table dialog on succes (fix #25535)
2020-03-26 15:26:35 +02:00
Sandro Santilli
b2af13bdcc [DBManager] Use ST_EstimatedExtent with newer PostGIS
Avoids errors with PostGIS 3.0+ ("st_estimated_extent" does not exist
anymore with that version).
2020-03-17 20:36:13 +01:00
Alexander Bruy
bedc2d9378 [dbmanager] clear create table dialog on succes (fix #25535) 2020-03-13 08:56:51 +02:00
Even Rouault
ab1755c6a2
Merge pull request #34795 from jgrocha/fix-db-manager-extent-to-string
Fix TypeError when displaying Postgis layers extent
2020-03-11 19:45:02 +01:00
Raul Bezerra Barbosa
7fe174266d fixes #34774 - python 2to3 related bug 2020-03-11 18:09:38 +01:00
Alessandro Pasotti
d3649a51b4 DB manager: connections refresh
Fixes #34862
2020-03-05 18:09:29 +01:00
Harrissou Sant-anna
1eae00e07a Update some use of QgsCoordinateReferenceSystem 2020-03-05 16:17:20 +10:00
Jorge Gustavo Rocha
c5c7427a94 Display extent properly if query returns a list of values 2020-03-01 02:16:26 +00:00
Juergen E. Fischer
edee4a3d10 spelling fixes (closes #32408) 2020-02-28 21:04:02 +01:00
Corentin.F
d87843c2c3
Correct bug from postgres comment using quote or caps 2020-02-28 08:36:58 +10:00
Alessandro Pasotti
949efbd84e DB Manager: fix tests and minor cleanup 2020-01-31 13:35:29 +01:00
Alessandro Pasotti
a6e9050453 DB manager PG connection proper API usage
Fixes #34132
2020-01-31 10:47:28 +01:00
Nyall Dawson
d2dec2f823 Update test 2020-01-28 12:04:39 +10:00
Sandro Santilli
d39b6ac77d
Merge pull request #33225 from strk/dbmanager-reconnect-button
DBManager PostgreSQL backend using core APIs instead of psycopg2
2020-01-20 12:05:22 +01:00
Sandro Santilli
5b4e581d03 Remove debugging 2020-01-14 10:42:56 +01:00
Sandro Santilli
6a20ed41a7 Extract field type from QgsField 2020-01-14 10:39:31 +01:00
Sandro Santilli
8ca08ec798 Set field precision and lengths from QgsField 2020-01-14 10:34:45 +01:00
Sandro Santilli
b4f4c331b7 Use lazy evaluation for query result descriptions 2020-01-14 10:31:11 +01:00
Alessandro Pasotti
0c2c133d83 DB manager use postgresraster provider instead of GDAL 2020-01-13 14:02:19 +01:00
Sandro Santilli
1ee8034e5b Handle query error 2020-01-10 14:52:33 +01:00
Sandro Santilli
bf4ed9ad47 Use QgsVectorLayer to retrive field names from queries 2020-01-10 09:46:05 +01:00
Sandro Santilli
8e5ff28077 Revert "Start reorganizing DB connection for SQL window dialog"
This reverts commit 0ad368a9d28128a4f80896cc6f9989f12b758840.
2020-01-09 10:08:03 +01:00
Sandro Santilli
ae8f35926f Make CursorAdapter more generic (directly use AbstractConnection) 2020-01-09 10:08:03 +01:00
Sandro Santilli
95cb05e12e Fix disabling of debug 2020-01-09 10:08:03 +01:00
Sandro Santilli
5109e17019 Drop debug calls, and unused import 2020-01-09 10:08:03 +01:00
Sandro Santilli
d2d723b91b Do not get db and user names from the env if service is used 2020-01-09 10:08:03 +01:00
Sandro Santilli
07d88b1aaf Set dbname from environment, if not set already 2020-01-09 10:08:03 +01:00
Sandro Santilli
67ce48f698 Hard-code provider name in connector, so existing test is fixed 2020-01-09 10:08:03 +01:00
Sandro Santilli
6aa87fa67b Rename CursorProxy to CursorAdapter 2020-01-09 10:08:03 +01:00
Sandro Santilli
e0ec0e0b3b Make CursorProxy scrollable, tweak more of the adapter 2020-01-09 10:08:03 +01:00
Sandro Santilli
285a98431f Remove debugging line 2020-01-09 10:08:03 +01:00
Sandro Santilli
bb12bf2cca Add special code to ensure a NULL value gets converted to None
NOTE: this should really be done in lower levels
2020-01-09 10:08:03 +01:00
Sandro Santilli
7acbc362c0 Fix more Cursor execution functions (rename table) 2020-01-09 10:08:03 +01:00
Sandro Santilli
18c51c485c Fix TopoViewer plugin 2020-01-09 10:08:03 +01:00
Sandro Santilli
f034317665 Use the new QgsAbstractDatabaseProviderConnection interface 2020-01-09 10:08:03 +01:00
Sandro Santilli
3892faeb1c Start reorganizing DB connection for SQL window dialog
Working toward resolution of #31994 (allowing reconnect on
connection loss)

[skip ci]
2020-01-09 10:08:03 +01:00
Nyall Dawson
b37dd0984e Rip off a band aid, and deprecate all "proj4" calls from the API
Alias these across to new "proj" methods, which don't include the
version number.
2019-12-20 12:13:06 +10:00
Borys Jurgiel
dbdc397fd8 [DB Manager] Fix broken geometry type of GeoPackage based SQL Layers. Fixes #33232 2019-12-16 10:08:44 +10:00