72 Commits

Author SHA1 Message Date
Raul Bezerra Barbosa
7fe174266d fixes #34774 - python 2to3 related bug 2020-03-11 18:09:38 +01:00
Juergen E. Fischer
edee4a3d10 spelling fixes (closes #32408) 2020-02-28 21:04:02 +01:00
Sebastian Niklasch
1a45936595 prevent AttributeError
If os.path.isfile(sqlite_cache_file) is False, the Attribute cache_connection was not assigned and so an Attribute Error occured in the following lines.
2019-10-26 15:59:39 +10:00
Juergen E. Fischer
b81d306047 spelling fixes (closes #32408) 2019-10-26 10:50:30 +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
rldhont
7362faca02 [Bugfix] DB Mananger: Fix in Oracle plugin the way to strip uniqueCol 2019-07-15 10:37:36 +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
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
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
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
33b8bbdff9 Astyle again 2019-02-05 11:59:14 +01:00
Alessandro Pasotti
de5171ac89 Code style (I had autopep8 installed btw) 2019-02-05 08:38:40 +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
Ailurupoda
aa3679a3cf Update layout oracle connector.py 2019-01-23 14:25:05 +01:00
Ailurupoda
00852f1642 Update oracle, vlayer, spatialite connector.py 2019-01-23 11:20:24 +01: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
Juergen E. Fischer
5f88ba4cfd db manager: fix syntax error in oracle plugin 2018-07-01 21:41:27 +02: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
Nyall Dawson
dd2ff1587a [dbmanager][oracle] Add some missing imports 2018-04-21 17:07:34 +10:00
Blottiere Paul
d589ba7d7c Try to add cancel support for Oracle databases in dbmanager 2018-04-21 17:03:11 +10:00
Nyall Dawson
2eca7ffbe2 [oracle] Fix some errors using oracle connector in db manager 2018-04-19 11:59:27 +10:00
Nyall Dawson
ea40f1e82a More capitalization homogenization 2018-02-13 19:49:15 +11:00
Nyall Dawson
fa56aa5542 [dbmanager] Fix python error when scrolling postgis results
Fixes #17835
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
Matthias Kuhn
262836d5fd Fix too-many-format-args 2017-10-17 00:32:35 +02:00
Matthias Kuhn
b0855e2c41 Fix super call 2017-10-17 00:28:33 +02:00
Harrissou Sant-anna
450eb7c24a Spelling check: Replace analyse by analyze 2017-07-02 22:28:50 +02:00
Nyall Dawson
384369c3c4 Rename QgsVectorLayerImport to QgsVectorLayerExporter
Since the majority of users of this class will be exporting
an existing map layer to a data provider, the QgsVectorLayerImport
name is misleading and suggests that this class is designed
just to bring layers "into" QGIS.

Explicitly naming the class "Exporter" should help API users
discover this class.

Also cleanup API and improve docs
2017-05-12 08:02:51 +10: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
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
Denis Rouzaud
0a63d1f2c2 [spellcheck] properly look into various cases and add more fixes" 2017-01-16 16:39:20 +01:00
Denis Rouzaud
6c74e4ea5d spelling fixes 2017-01-12 22:01:50 +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
4b00182482 oracle provider: by default skip additional geometry columns (on 64bit
Windows/Linux OCI crashes when there are more than three geometry
columns)
2016-06-23 22:22:46 +02:00
Salvatore Larosa
f1ec12133e [dbmanager] followup 8727799: again some emit signal fix 2016-06-11 18:29:29 +02:00
Matthias Kuhn
25f2e637c0 Remove references to QPyNullVariant 2016-05-13 22:23:03 +02:00