6 Commits

Author SHA1 Message Date
Alessandro Pasotti
ce5405f136 Added since to new API methods 2019-10-28 09:25:40 +01:00
Alessandro Pasotti
aa92ef3576 DB connections API: add table() and tests
This method allows to retrieve information
about a single table.
2019-10-26 16:20:03 +02:00
Alessandro Pasotti
a070020cbb Add DB connection tableUri method
This allows to construct a data source URI string to load a table layer
from the DB connections.

!!
RASTER is still TODO
!!
2019-10-26 16:20:03 +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
Juergen E. Fischer
19220b9e06 fix windows build including some warnings 2019-08-17 11:58:04 +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