87 Commits

Author SHA1 Message Date
Alessandro Pasotti
d3649a51b4 DB manager: connections refresh
Fixes #34862
2020-03-05 18:09:29 +01:00
Alessandro Pasotti
949efbd84e DB Manager: fix tests and minor cleanup 2020-01-31 13:35:29 +01:00
Juergen E. Fischer
002d3986d5 translation string fix 2019-11-03 19:00:08 +01:00
Matthias Kuhn
ea510e83ef
Update python/plugins/db_manager/db_plugins/plugin.py
Co-Authored-By: Alessandro Pasotti <elpaso@itopen.it>
2019-10-07 09:18:34 +02:00
Matthias Kuhn
f3dd5150c7 [db_manager] Detect CRS in advanced add layer 2019-10-06 18:43:57 +02:00
Matthias Kuhn
c9133ee75d Update python/plugins/db_manager/db_plugins/plugin.py
Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>
2019-10-06 18:43:57 +02:00
Matthias Kuhn
da31655549 Update python/plugins/db_manager/db_plugins/plugin.py
Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>
2019-10-06 18:43:57 +02:00
Matthias Kuhn
54354406d0 [db_manager] Allow selecting geometry type in context menu
When a layer has a generic "GEOMETRY" type, it will only be listed once in the db_manager
but with an additional context menu entry for advanced properties, where one can select
the geometry type and the CRS.

Fix #32119
References #30787
2019-10-06 18:43:47 +02:00
Alexander Bruy
cebdc8dded [dbmanager] don't ignore field modifiers (e.g. length or geometry
definition) when updating it (fix #27613)
2019-09-23 06:01:56 +10:00
Alexander Bruy
54c23d137f [dbmanager] handle attempts to edit raster tables (fix #30214) 2019-09-21 06:05:42 +10: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
olivierdalang
395486b694 fix #30260 2019-06-22 00:26:00 +02: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
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
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
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
corentin.falcone
911a36119a Update travis building 2019-01-11 14:30:10 +01:00
corentin.falcone
c0dd72ee8b Update travis building 2019-01-11 14:15:46 +01:00
corentin.falcone
7852a7a71a Update building 2019-01-11 11:56:01 +01:00
corentin.falcone
94784a5cf8 Update building 2019-01-11 11:10:02 +01:00
Alessandro Pasotti
0fcb64379f
Update python/plugins/db_manager/db_plugins/plugin.py
Co-Authored-By: Ailurupoda <akwalith@gmail.com>
2019-01-11 10:36:14 +01:00
Alessandro Pasotti
4011a8dbba
Update python/plugins/db_manager/db_plugins/plugin.py
Co-Authored-By: Ailurupoda <akwalith@gmail.com>
2019-01-11 10:36:00 +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
Alessandro Pasotti
15f4138a47 [db-manager] Store exception text in the task and pass it over to the caller
Fix #2019 - DBManager fails to display error messages with virtual layers
2018-10-23 14:59:10 +02:00
Juergen E. Fischer
ef6ce4ec3f db manager: also add newline when adding a unique id field (fixes #19343)
(cherry picked from commit 870d078479352d61edd902ab9d2ca48e98db9148)
2018-07-05 17:45:18 +02:00
nirvn
7e8ec00c9b [dbmanager] vectorize icons to fix toolbar in hidpi context 2018-07-02 12:51:44 +07:00
nirvn
86547eb5fc [dbmanager] add connection icon
this harmonizes display with that of the browser panel
2018-06-30 15:43:31 +07:00
Blottiere Paul
bf7df6d2e3 Add a cancel button for Postgis and Spatialite 2018-03-02 09:43:26 +00:00
Nyall Dawson
ea40f1e82a More capitalization homogenization 2018-02-13 19:49:15 +11:00
Nyall Dawson
6b4e734d95 [dbmanager] Fix inconsistent capitalization, HIG violations,
and unprofessional strings
2018-02-13 19:49:15 +11:00
Denis Rouzaud
3dc3d9d1b2 unite QgsMessageLog::Level and QgsMessageBar::MessageLevel in Qgis::MessageLevel
make enum items lower case
remove unused QgsMessageLog::None and All
2018-02-06 08:56:40 -04:00
Matthias Kuhn
7aae9454ec Add abstract base method 2017-10-17 00:28:58 +02:00
Matthias Kuhn
b94612dffa Properly raise NotImplementedError 2017-10-17 00:01:48 +02:00
Juergen E. Fischer
f00a87cb8a update translation strings 2017-03-05 10:21:24 +01:00
Juergen E. Fischer
ecc5bb508e pep8/pyflakes3 cleanups 2017-03-04 02:38:15 +01:00
Juergen E. Fischer
a10c890383 More QgsSettings updates:
* revives WMS
* QgsSettings::clear() added
* section added to QgsSettings::contains()
* type parameter added to sip binding of QgsSettings.value()
* TODO: customization & evis
2017-03-04 02:37:59 +01:00
DelazJ
828e447991 More spelling fixes
* editation
* definintion
* Unabled
* capitalize QGIS
* replace algs by algorithms
* queryings
* symbo(s)
* missing space after a dot
2016-12-29 01:53:55 +01:00
rldhont
a9795ad8ea [DB Manager] Allow lowercase field names for homogenize PostGIS Import
PostGIS provider has an option to lowercase field names. This options is available for user in QGIS algorithm ImportIntoPostGIS and not in DB Mananger.

This commit fix it.
2016-10-19 13:03:32 +02:00
Juergen E. Fischer
31df84aa6b run 2to3 on source 2016-09-21 23:30:04 +02:00
Nyall Dawson
1a2231f10c Rename QGis class to Qgis, for capitalisation consistency 2016-07-21 22:01:38 +10:00
Salvatore Larosa
87277999a4 [dbmanager] Fix emit signal when refresh fields in table 2016-06-11 16:58:11 +02:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +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