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
Alessandro Pasotti
8fb112d26f
[db-manager] Invalidate sqlite connection if it was created in another thread
...
Fixes #21028 - DB manager: SQLite objects created in a thread can only be used in that same thread
2019-03-11 16:04:00 +01:00
Matthias Kuhn
1f4747fe62
Better error message when failed to open DB
...
hopefully gives some hints why the db manager tests sometimes fail
2019-02-21 21:57:27 +01:00
Alessandro Pasotti
8639bcf853
[db-manager] Use QgsDataItem implementation for GPKG layer rename
...
- Removes code duplication
- Uses a tested and robust implementation (from OGR)
- Takes care of renaming QGIS styles
- Updates the information view in the plugin
Fixes #21227
2019-02-13 12:49:55 +01:00
Ailurupoda
db4db5983a
Fix travis
2019-02-08 11:01:13 +01:00
Ailurupoda
db06040b60
Change != True to not + getComment and commentTable on main file if not needed only
2019-02-08 10:45:49 +01:00
Ailurupoda
9741515fae
Replace db.connector/self + is None
2019-02-08 08:30:48 +01:00
Ailurupoda
8ed7971626
Another fix try
2019-02-07 17:29:25 +01:00
Ailurupoda
f27ecab62f
Fix travis
2019-02-07 16:44:28 +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
Blottiere Paul
cf53a4cb14
Add async model for gpkg
2018-03-02 09:43:26 +00:00
Even Rouault
95feb87d3b
Fix DBManager + PyQgsDBManagerGpkg and unblack list it for Travis-CI
2017-11-10 22:02:19 +01:00
Even Rouault
3d9ca40f4e
[DB Manager / GPKG] Remove GDAL 1.x support
2017-11-09 19:18:34 +01:00
Even Rouault
4eed39b63c
[DB Manager / GPKG] Fix COMMIT with GDAL 2 ( fix #16174 )
2017-11-09 19:11:33 +01:00
Matthias Kuhn
5bf300d79f
Fix access to member variable in classmethod
2017-10-16 23:45:55 +02:00
Matthias Kuhn
118e303a8d
Fix typo in method call
2017-10-16 23:36:38 +02:00
Even Rouault
2fb0b16364
[DBManager] Avoid unhandled exception on a untyped geometry (wkbUnknown) layer ( #16730 )
2017-06-21 14:17:29 +02:00
Juergen E. Fischer
c77172ed3d
fix more flake8 warnings
2017-03-05 10:21:24 +01:00
Denis Rouzaud
748be8de71
[spelling] replace behaviour by behavior
2017-01-11 11:35:19 +01:00
Nyall Dawson
fd15090521
Update identation
2016-11-08 08:51:22 +10:00
Even Rouault
984ec65fcd
[DBManager GPKG] Set appropriate icon for line layers
2016-10-27 15:59:57 +02:00
Even Rouault
d0da880b8c
[DB Manager] Fix refresh issue when renaming GPKG table, and disable add geometry column button if already one existing
2016-10-25 15:39:27 +02:00
Even Rouault
794c8f3c85
[DB_Manager GPKG] Fix creating and changing default values of columns
2016-10-24 17:41:49 +02:00
Even Rouault
f84826d58d
[DB_Manager GPKG] Fix logic inversion in GDAL 1.X vs GDAL 2.X cases
2016-10-24 17:01:58 +02:00
Even Rouault
3f2866c47a
[FEATURE] [DBManager] Add a GeoPackage dedicated plugin
2016-10-18 20:08:27 +02:00