Alessandro Pasotti
a3c4eb9947
Providers connections interface API
...
This is the implementation of the new DB connections API (grant proposal 2019).
Summary
The new API makes it available to QGIS core a new interface for provider connections and will allow to:
replace the provider specific QgsSettings management in QGIS4 (save/load connections from the settings) NOT IN SCOPE FOR NOW.
provide a unified API for common operations on DB connections:
executeSql and get the results
list tables names and properties and schemas
create a new vector table (no rasters for now)
create/rename/drop schemas and tables
vacuum
....
2019-08-16 20:44:05 +02:00
Matthias Kuhn
c3e6b7236d
Update python/plugins/db_manager/db_plugins/postgis/connector.py
...
Co-Authored-By: Etienne Trimaille <gustrimaille@yahoo.fr>
2019-06-25 08:45:24 +02:00
Matthias Kuhn
95f63ec3b8
[dbmanager] Fix use before assign
2019-06-24 14:51:59 +02:00
Alexander Bruy
03abf0e42b
[db_manager] apply comment to the correct column when altering table
...
column (fix #21425 )
2019-05-23 15:43:14 +03:00
Stephen Knox
a5cc1842a2
Add boolean type to DB Manager PostGIS provider
2019-05-09 07:44:56 +10:00
Ailurupoda
9741515fae
Replace db.connector/self + is None
2019-02-08 08:30:48 +01:00
Corentin.F
68c541b969
Update connector.py
2019-02-07 18:45:53 +01:00
Ailurupoda
8ed7971626
Another fix try
2019-02-07 17:29:25 +01:00
Ailurupoda
832eb40166
Another fix try
2019-02-07 16:59:12 +01:00
Ailurupoda
f27ecab62f
Fix travis
2019-02-07 16:44:28 +01:00
Ailurupoda
277d4fefae
Fixing travis test
2019-02-07 13:10:37 +01:00
Ailurupoda
63c010dbb5
Fix create and delete comment from tableProperties
2019-02-07 09:56:48 +01:00
Ailurupoda
f3dfd97d90
New fix, still some need to be done
2019-02-06 17:37:48 +01:00
Ailurupoda
dff185355d
Fix bug comment on postgres and others management
2019-02-06 10:53:56 +01:00
Ailurupoda
ad81e66daa
Update gpkg UpdateTableColumn add argument new_comment
2019-01-23 10:48:16 +01:00
Corentin.F
9184a5b273
Update connector.py
2019-01-21 15:50:24 +01:00
corentin.falcone
7852a7a71a
Update building
2019-01-11 11:56:01 +01:00
Alessandro Pasotti
4f20f50ea3
Update python/plugins/db_manager/db_plugins/postgis/connector.py
...
Co-Authored-By: Ailurupoda <akwalith@gmail.com>
2019-01-11 10:36:54 +01:00
corentin.falcone
a764c08e7d
Add comment on field | DbManager
2019-01-10 16:46:55 +01:00
corentin.falcone
2e97615037
Revert "Add comment on field | DbManager"
...
This reverts commit 6b98d8de49f76ae10f31fdb644e9960225bb57f0.
2019-01-10 16:29:34 +01:00
corentin.falcone
6b98d8de49
Add comment on field | DbManager
2019-01-10 16:08:58 +01:00
Luigi Pirelli
8968b63efd
from unicode to str
2018-05-31 13:06:00 +02:00
Luigi Pirelli
4f415c56e5
typo
2018-05-31 13:06:00 +02:00
Luigi Pirelli
878ab41ad3
Set permission to certs to allow correct removing on win
2018-05-31 13:06:00 +02:00
Blottiere Paul
bf7df6d2e3
Add a cancel button for Postgis and Spatialite
2018-03-02 09:43:26 +00:00
Juergen E. Fischer
f243b8448e
postgres: add support for partitioned tables (implements #17302 )
2017-10-21 17:39:18 +02:00
Matthias Kuhn
f1eba211f6
Fix call to non-existent method
2017-10-17 00:29:23 +02:00
Matthias Kuhn
506a831565
Fix typo in method name
2017-10-17 00:03:31 +02:00
Harrissou Sant-anna
9e6b8ed59d
Use PostGIS and PostgreSQL spelling when appropriate
2017-07-07 01:26:38 +02:00
Sandro Santilli
13e39da074
Ensure "dbname" is set in the uri, once again
...
Fixes #16625 (ref #10600 )
2017-05-26 17:52:29 +02:00
Juergen E. Fischer
c77172ed3d
fix more flake8 warnings
2017-03-05 10:21:24 +01:00
Denis Rouzaud
6c74e4ea5d
spelling fixes
2017-01-12 22:01:50 +01:00
arnaud.morvan@camptocamp.com
9cd39e79dd
[db_manager] Fix connection to postgis
2016-11-06 13:29:59 +01:00
Juergen E. Fischer
31df84aa6b
run 2to3 on source
2016-09-21 23:30:04 +02:00
Mathieu Pellerin
cd1d44be9d
[db manager] python3 support ( #3512 )
2016-09-20 09:34:36 +02:00
Matthias Kuhn
bb79d13e82
Remove deprecated Qgis::WKBType and API cleanup ( #3325 )
...
* Remove deprecated Qgis::WKBType and API cleanup
Renames QgsWKBTypes to QgsWkbTypes
Replaces usage of the enums:
* Qgis::WKBType with QgsWkbTypes::Type
* Qgis::GeometryType with QgsWkbTypes::GeometryType
Their values should be forward compatible (a fact that was already
explited up to now by casting between the types)
Renames some SSLxxx to SslXxx and URIxxx to UriXxx
* Fix build warnings and simplify type handling
* Add a fixer to rewrite imports
* The forgotten rebase conflictThe forgotten rebase conflicts
* QgsDataSourcURI > QgsDataSourceUri
* QgsWKBTypes > QgsWkbTypes
* Qgis.WKBGeom > QgsWkbTypes.Geom
* Further python fixes
* Guess what... Qgis::wkbDimensions != QgsWkbTypes::wkbDimensions
* Fix tests
* Python 3 updates
* [travis] pull request caching cannot be disabled
so at least use it in r/w mode
* Fix python3 print in plugins
2016-08-04 09:10:08 +02:00
Nyall Dawson
1a2231f10c
Rename QGis class to Qgis, for capitalisation consistency
2016-07-21 22:01:38 +10:00
Juergen E. Fischer
ecf3b3719d
db manager: show database name in postgis connection details ( fixes #3489 )
2016-06-21 00:17:41 +02:00
Sebastian Dietrich
c5308754eb
[DbManager] allow to refresh materialized views
...
(fixes #13697 )
2016-05-14 00:41:20 +02:00
Denis Rouzaud
8071acd064
move PyQt compat folder to python/qgis
2016-04-29 14:10:26 +02:00
Alessandro Pasotti
1eb63768d9
[dbmanager] Use user name as DB name if provided
...
Followup for 212b125
2016-04-12 14:40:23 +02:00
Alessandro Pasotti
212b125a2c
[dbmanager] PG ignore env if service file is used
...
Fixes #14436
Funded by Boundless
2016-04-12 14:05:19 +02:00
Juergen E. Fischer
c55f8b73f0
db_manager: cleanups
2016-03-21 17:00:24 +01:00
Juergen E. Fischer
8bda5c00a5
db_manager: migrate to new style signals
2016-03-15 23:46:54 +01:00
Sebastian Dietrich
560007846a
[DbManager] allow to delete materialized views
...
(refs #13829 )
2016-01-27 00:28:22 +01:00
Sebastian Dietrich
50878114a7
[DbManager] fetch type of view (materialized or not) and show in info
...
(refs #13829 )
2016-01-27 00:28:22 +01:00
Sandro Santilli
da372c8d40
Ensure "dbname" is always set in the uri
...
Fixes #10600
2016-01-19 10:58:14 +01:00
Luigi Pirelli
5fb798e220
[auth][db_manager]removed certs (if any) after postgres connection
2016-01-13 21:28:25 +01:00
Sebastian Dietrich
ef91882fe0
explicitly call QgsDataSourceURI.connectionInfo() with appropriate parameter
2016-01-13 20:12:19 +01:00
Juergen E. Fischer
b39055b39c
indentation update (now including autopep8)
2015-08-22 14:29:41 +02:00