Sandro Santilli
d921c20f58
Add support for "bbox" URI parameter in PostgreSQL provider
...
.. and use it from TopoViewer DBManager plugin
Closes #18107
2019-08-29 17:47:25 +02:00
Sandro Santilli
8cc683061c
Update TopoViewer layer style templates
...
From 1.9 version to 2.18 version
Closes #31471
2019-08-29 16:36:55 +02:00
Alessandro Pasotti
fad258e37a
Merge pull request #31319 from elpaso/db_interface_new_constructors
...
New ctors for connections interface
2019-08-22 09:03:17 +02:00
Sandro Santilli
ae0721891b
Restore TopoViewer functionality
...
This was broken in commit d7166404030292b9536e649795e9efec49225dfd
2019-08-21 17:27:48 +02:00
Alessandro Pasotti
a092a82b52
New ctors for connections interface
...
Tries to make it clearer what are the use cases for the two
constructors (name and uri).
2019-08-21 15:45:21 +02:00
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
bd61fa55e7
Do not specify srid in dbmanager. It goes crazy
...
If srid is specified in an uri, it disables type detection.
Fix #30787
2019-08-02 13:12:18 +02:00
lbartoletti
81c4b81b3b
[bugfix] Fix the whole text instead of the selected part in db_manager save SQL file. fixes #30616
2019-07-22 18:41:01 +10:00
rldhont
7362faca02
[Bugfix] DB Mananger: Fix in Oracle plugin the way to strip uniqueCol
2019-07-15 10:37:36 +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
olivierdalang
395486b694
fix #30260
2019-06-22 00:26:00 +02:00
Matthias Kuhn
24e56a810c
Merge pull request #30176 from jgrocha/redmine2github
...
References to issues.qgis.org updated
2019-06-17 11:34:12 +02:00
Matthias Kuhn
83c8b5bf16
Merge pull request #30173 from olivierdalang/dbmanager_fix_generic_geom
...
[dbmanager] allow to import GEOMETRY tables
2019-06-12 09:54:57 +02:00
Jorge Gustavo Rocha
38c8e757aa
References to issues.qgis.org updated
2019-06-12 00:10:43 +01:00
olivierdalang
86f8bdb0aa
[dbmanager] allow to import GEOMETRY tables
...
UI is similar to the browser, where generic geometry tables
are display several times, one for each type.
2019-06-05 17:46:57 +02:00
Alexander Bruy
b489c21b58
[dbmanager] add promary key to the view created by versioning plugin
...
(fix #25888 )
2019-05-31 14:55:35 +03: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
Alessandro Pasotti
3df7f897f6
db-manager: Update input layer and table names
...
when selecting an external file
Fixes #22033 - wrong shapefile import
2019-05-23 10:58:01 +02:00
Bas Couwenberg
2628c480c5
Don't include revision in sources.
...
Prevent changes to files that weren't changed between releases.
This eases review of the changes between releases significantly.
2019-05-17 16:47:47 +02:00
Stephen Knox
a5cc1842a2
Add boolean type to DB Manager PostGIS provider
2019-05-09 07:44:56 +10:00
Nyall Dawson
ef8d893393
More QgsMapLayer python fixes
2019-03-27 09:11:15 +10:00
Nyall Dawson
ac651ee0d9
Followup 8d51a693, fix broken plugins
2019-03-27 07:20:43 +10:00
Denis Rouzaud
8d51a693a1
missing changes of QgsMapLayer::Type => QgsMapLayerType
2019-03-26 14:09:19 -05: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
Corentin.F
8602d8fd97
Fix LineEdit name error
2019-03-05 09:59:28 +01:00
nirvn
b5146db92e
Use the QgsSqliteUtils system tables list in DB Manager
2019-03-01 12:30:04 +07:00
Matthias Kuhn
98348599d3
Merge pull request #9239 from m-kuhn/better-error-messages-gpkg-fail
...
Better error message when failed to open DB
2019-02-25 09:11:47 +01:00
Alessandro Pasotti
678f98c355
Merge pull request #9247 from elpaso/bugfix-21353-db-manager-sql-error
...
Fix db manager sql query
2019-02-23 23:23:09 +01:00
Juergen E. Fischer
2b21a97994
fix #19933
2019-02-23 22:09:53 +01:00
Alessandro Pasotti
74aa8ca16e
Fix db manager sql query
...
Fixes #21353
2019-02-23 11:10:50 +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
Etienne Trimaille
f37d48f69b
keep comments when save as preset or file, remove lines starting by "--" in DBManager
2019-02-18 22:04:34 -04:00
Alessandro Pasotti
dabd649a6d
Merge pull request #9164 from elpaso/bugfix-21227-layer-rename-styles
...
Fix GPKG layer rename styles in browser
2019-02-13 16:24:50 +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
Nyall Dawson
493185c6a0
Astyle
2019-02-13 07:59:30 +10:00
Nyall Dawson
29fa7b6e7b
Fix build, indentation
2019-02-13 07:59:30 +10:00
Ailurupoda
d331143837
Removing print
2019-02-08 11:18:53 +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
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
e9e9fd322e
Fixing travis layout
2019-02-07 15:35:16 +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