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
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
nirvn
b5146db92e
Use the QgsSqliteUtils system tables list in DB Manager
2019-03-01 12:30:04 +07: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
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
Alessandro Pasotti
cd6ce76480
Quick and dirty patch to DB-Manager after PR 8831
...
The "comments" PR 8831 added support for postgres only
(and broke all the others backends).
I'd be in favor of a revert of the whole original PR but
this patch restores functionality and could be an acceptable
temporary fix until the comments PR is reworked in a more
maintainable and elegant way.
Fixes #21151 btw
2019-02-04 18:26:24 +01:00
Corentin.F
a80f3d01ee
Merge branch 'master' into sirs_db_manager
2019-01-23 11:22:12 +01:00
Ailurupoda
00852f1642
Update oracle, vlayer, spatialite connector.py
2019-01-23 11:20:24 +01:00
Julien Cabieces
49cb397f89
Update layer statistics when adding column to table in order to be displayed by QGIS
...
fixes #13504
2019-01-22 07:54:12 +11:00
nirvn
b315fbce8d
[spatialite provider][dbmanager] hide a few more tables
2018-06-30 15:43:31 +07:00
nirvn
af322fbd63
[dbmanager] hide more spatialite tables by default
2018-06-30 15:43:31 +07:00
nirvn
46246f622d
[needs-docs][dbmanager] harmonize icons
2018-06-29 11:56:37 +07:00
Harrissou Sant-anna
394aaba060
Trying to make Providers labels translatable
...
in DB Manager tree
2018-05-01 16:07:41 +02:00
Blottiere Paul
eef18cbe2e
Remove unused code
2018-03-02 09:43:26 +00:00
Blottiere Paul
887a226115
Use python super() calls
2018-03-02 09:43:26 +00:00
Blottiere Paul
ad630094c1
More cleaning
2018-03-02 09:43:26 +00:00
Blottiere Paul
a948f1b84d
Some clean
2018-03-02 09:43:26 +00:00
Blottiere Paul
bf7df6d2e3
Add a cancel button for Postgis and Spatialite
2018-03-02 09:43:26 +00:00
Nyall Dawson
838bde33ab
[dbmanager] Workaround Python error when vacuuming spatialite table
...
Workaround https://bugs.python.org/issue28518
Fixes #18079
2018-02-16 12:34:16 +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
Harrissou Sant-anna
6fab688298
Use SpatiaLite right spelling when needed
2017-07-07 01:26:38 +02:00
Juergen E. Fischer
beed86e19d
db manager: fix spatialite plugin (followup c77172ed; fixes #16542 )
2017-05-21 10:45:30 +02:00
Juergen E. Fischer
c77172ed3d
fix more flake8 warnings
2017-03-05 10:21:24 +01:00
Juergen E. Fischer
f00a87cb8a
update translation strings
2017-03-05 10:21:24 +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
Denis Rouzaud
6c74e4ea5d
spelling fixes
2017-01-12 22:01:50 +01:00
Denis Rouzaud
748be8de71
[spelling] replace behaviour by behavior
2017-01-11 11:35:19 +01:00
Even Rouault
2c1356cd1d
[DBManager] Remove geopackage support from spatialite plugin
2016-10-18 20:08:27 +02:00
nirvn
20d006e101
[db manager] fix spatialite error reporting
2016-10-07 12:07:55 +07: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
Hugo Mercier
5c3a43e286
Fix spatialite access with python3
2016-09-05 13:43:00 +02:00
Nyall Dawson
eba6101357
Fix broken python save/open dialogs under PyQt5
...
Will break stuff under PyQt4... oh well, better stuff working on Qt5
then Qt4
2016-09-05 11:41:49 +10:00
Even Rouault
8c3537bff2
[DBManager] Fix exception raised when adding a new Spatialite connection
...
This was accidentaly broken since 1f0fce7852e9f6a27af967d7ac7ee3989dce7b45
Fixes #15274
2016-09-01 20:51:26 +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
1f0fce7852
db manager: fix drag and drop import ( fixes #13712 )
2016-06-22 12:35:17 +02:00
Salvatore Larosa
65aa860121
[dbmanager] Fixes #14722 - Adding new GeoPackage connection to DB Manager is throwing error
2016-06-07 14:06:07 +02:00
Denis Rouzaud
8071acd064
move PyQt compat folder to python/qgis
2016-04-29 14:10:26 +02:00
elpaso
1e6dceb7d2
[dbmanager] Fixes various signal bugs after 8bda5c
...
Fixes some unreported glitches after new signals migration.
Also fixes #14649
2016-04-14 09:02:04 +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
Juergen E. Fischer
c6d921729e
python fixes:
...
* issues identified by pyflakes (star and unused imports)
* pyqtwrapper: add QtSvg
* some exceptions e.message => unicode(e)
* some translations tr("..." % foo) => tr("...") % foo
* TODO:
python/console/console_sci.py:547 QsciScintillaCompat?
python/plugins/db_manager/dlg_query_builder.py:304 pop_up_error?
2016-03-15 17:25:23 +01:00