|
| QgsAbstractDatabaseProviderConnection (const QString &name) |
| Creates a new connection with name by reading its configuration from the settings. More...
|
|
| QgsAbstractDatabaseProviderConnection (const QString &uri, const QVariantMap &configuration) |
| Creates a new connection from the given uri and configuration. More...
|
|
virtual void | addField (const QgsField &field, const QString &schema, const QString &tableName) const SIP_THROW(QgsProviderConnectionException) |
| Adds a field. More...
|
|
virtual void | addFieldDomain (const QgsFieldDomain &domain, const QString &schema) const SIP_THROW(QgsProviderConnectionException) |
| Adds a new field domain to the database. More...
|
|
Capabilities | capabilities () const |
| Returns connection capabilities. More...
|
|
virtual void | createSchema (const QString &name) const SIP_THROW(QgsProviderConnectionException) |
| Creates a new schema with the specified name. More...
|
|
virtual void | createSpatialIndex (const QString &schema, const QString &name, const QgsAbstractDatabaseProviderConnection::SpatialIndexOptions &options=QgsAbstractDatabaseProviderConnection::SpatialIndexOptions()) const SIP_THROW(QgsProviderConnectionException) |
| Creates a spatial index for the database table with given schema and name (schema is ignored if not supported by the backend). More...
|
|
virtual QgsVectorLayer * | createSqlVectorLayer (const SqlVectorLayerOptions &options) const SIP_THROW(QgsProviderConnectionException) |
| Creates and returns a (possibly invalid) vector layer based on the sql statement and optional options. More...
|
|
virtual void | createVectorTable (const QString &schema, const QString &name, const QgsFields &fields, QgsWkbTypes::Type wkbType, const QgsCoordinateReferenceSystem &srs, bool overwrite, const QMap< QString, QVariant > *options) const SIP_THROW(QgsProviderConnectionException) |
| Creates an empty table with name in the given schema (schema is ignored if not supported by the backend). More...
|
|
virtual void | deleteField (const QString &fieldName, const QString &schema, const QString &tableName, bool force=false) const SIP_THROW(QgsProviderConnectionException) |
| Deletes the field with the specified name. More...
|
|
virtual void | deleteSpatialIndex (const QString &schema, const QString &name, const QString &geometryColumn) const SIP_THROW(QgsProviderConnectionException) |
| Deletes the existing spatial index for the database table with given schema, name and geometryColumn (schema and geometryColumn are ignored if not supported by the backend). More...
|
|
virtual void | dropRasterTable (const QString &schema, const QString &name) const SIP_THROW(QgsProviderConnectionException) |
| Drops a raster table with given schema (schema is ignored if not supported by the backend) and name. More...
|
|
virtual void | dropSchema (const QString &name, bool force=false) const SIP_THROW(QgsProviderConnectionException) |
| Drops an entire schema with the specified name. More...
|
|
virtual void | dropVectorTable (const QString &schema, const QString &name) const SIP_THROW(QgsProviderConnectionException) |
| Drops a vector (or aspatial) table with given schema (schema is ignored if not supported by the backend) and name. More...
|
|
virtual QueryResult | execSql (const QString &sql, QgsFeedback *feedback=nullptr) const SIP_THROW(QgsProviderConnectionException) |
| Executes raw sql and returns the (possibly empty) query results, optionally feedback can be provided. More...
|
|
virtual QList< QList< QVariant > > | executeSql (const QString &sql, QgsFeedback *feedback=nullptr) const SIP_THROW(QgsProviderConnectionException) |
| Executes raw sql and returns the (possibly empty) list of results in a multi-dimensional array, optionally feedback can be provided. More...
|
|
virtual QgsFieldDomain * | fieldDomain (const QString &name) const SIP_THROW(QgsProviderConnectionException) |
| Returns the field domain with the specified name from the provider. More...
|
|
virtual QStringList | fieldDomainNames () const SIP_THROW(QgsProviderConnectionException) |
| Returns a list of field domain names present on the provider. More...
|
|
virtual QgsFields | fields (const QString &schema, const QString &table) const SIP_THROW(QgsProviderConnectionException) |
| Returns the fields of a table and schema. More...
|
|
virtual GeometryColumnCapabilities | geometryColumnCapabilities () |
| Returns connection geometry column capabilities (Z, M, SinglePart, Curves). More...
|
|
virtual QList< QgsVectorDataProvider::NativeType > | nativeTypes () const SIP_THROW(QgsProviderConnectionException)=0 |
| Returns a list of native types supported by the connection. More...
|
|
QString | providerKey () const |
| Returns the provider key. More...
|
|
virtual QgsProviderSqlQueryBuilder * | queryBuilder () const |
| Returns a SQL query builder for the connection, which provides an interface for provider-specific creation of SQL queries. More...
|
|
virtual QList< QgsWeakRelation > | relationships (const QString &schema=QString(), const QString &tableName=QString()) const SIP_THROW(QgsProviderConnectionException) |
| Returns a list of relationships detected in the database. More...
|
|
virtual void | renameField (const QString &schema, const QString &tableName, const QString &name, const QString &newName) const SIP_THROW(QgsProviderConnectionException) |
| Renames an existing field. More...
|
|
virtual void | renameRasterTable (const QString &schema, const QString &name, const QString &newName) const SIP_THROW(QgsProviderConnectionException) |
| Renames a raster table with given schema (schema is ignored if not supported by the backend) and name. More...
|
|
virtual void | renameSchema (const QString &name, const QString &newName) const SIP_THROW(QgsProviderConnectionException) |
| Renames a schema with the specified name. More...
|
|
virtual void | renameVectorTable (const QString &schema, const QString &name, const QString &newName) const SIP_THROW(QgsProviderConnectionException) |
| Renames a vector or aspatial table with given schema (schema is ignored if not supported by the backend) and name. More...
|
|
virtual QStringList | schemas () const SIP_THROW(QgsProviderConnectionException) |
| Returns information about the existing schemas. More...
|
|
virtual QList< QgsLayerMetadataProviderResult > | searchLayerMetadata (const QgsMetadataSearchContext &searchContext, const QString &searchString=QString(), const QgsRectangle &geographicExtent=QgsRectangle(), QgsFeedback *feedback=nullptr) const SIP_THROW(QgsProviderConnectionException |
| Search the stored layer metadata in the connection, optionally limiting the search to the metadata identifier, title, abstract, keywords and categories. More...
|
|
virtual void | setFieldDomainName (const QString &fieldName, const QString &schema, const QString &tableName, const QString &domainName) const SIP_THROW(QgsProviderConnectionException) |
| Sets the field domain name for the existing field with the specified name. More...
|
|
virtual bool | spatialIndexExists (const QString &schema, const QString &name, const QString &geometryColumn) const SIP_THROW(QgsProviderConnectionException) |
| Determines whether a spatial index exists for the database table with given schema, name and geometryColumn (schema and geometryColumn are ignored if not supported by the backend). More...
|
|
virtual QMultiMap< Qgis::SqlKeywordCategory, QStringList > | sqlDictionary () |
| Returns a dictionary of SQL keywords supported by the provider. More...
|
|
virtual Qgis::SqlLayerDefinitionCapabilities | sqlLayerDefinitionCapabilities () |
| Returns SQL layer definition capabilities (Filters, GeometryColumn, PrimaryKeys). More...
|
|
virtual SqlVectorLayerOptions | sqlOptions (const QString &layerSource) SIP_THROW(QgsProviderConnectionException) |
| Returns the SQL layer options from a layerSource. More...
|
|
virtual QList< Qgis::FieldDomainType > | supportedFieldDomainTypes () const |
| Returns a list of field domain types which are supported by the provider. More...
|
|
virtual QgsAbstractDatabaseProviderConnection::TableProperty | table (const QString &schema, const QString &table) const SIP_THROW(QgsProviderConnectionException) |
| Returns information on a table in the given schema. More...
|
|
virtual bool | tableExists (const QString &schema, const QString &name) const SIP_THROW(QgsProviderConnectionException) |
| Checks whether a table name exists in the given schema. More...
|
|
virtual QList< QgsAbstractDatabaseProviderConnection::TableProperty > | tables (const QString &schema=QString(), const QgsAbstractDatabaseProviderConnection::TableFlags &flags=QgsAbstractDatabaseProviderConnection::TableFlags()) const |
| Returns information on the tables in the given schema. More...
|
|
QList< QgsAbstractDatabaseProviderConnection::TableProperty > | tablesInt (const QString &schema=QString(), const int flags=0) const SIP_THROW(QgsProviderConnectionException) |
| Returns information on the tables in the given schema. More...
|
|
virtual QString | tableUri (const QString &schema, const QString &name) const SIP_THROW(QgsProviderConnectionException) |
| Returns the URI string for the given table and schema. More...
|
|
virtual void | vacuum (const QString &schema, const QString &name) const SIP_THROW(QgsProviderConnectionException) |
| Vacuum the database table with given schema and name (schema is ignored if not supported by the backend). More...
|
|
| QgsAbstractProviderConnection (const QString &name) |
| Creates a new connection with name by reading its configuration from the settings. More...
|
|
| QgsAbstractProviderConnection (const QString &uri, const QVariantMap &configuration) |
| Creates a new connection from the given uri and configuration. More...
|
|
virtual | ~QgsAbstractProviderConnection ()=default |
|
QVariantMap | configuration () const |
| Returns the connection configuration parameters. More...
|
|
virtual QIcon | icon () const |
| Returns an icon representing the connection. More...
|
|
virtual void | remove (const QString &name) const =0 |
| Deletes the connection from the settings. More...
|
|
void | setConfiguration (const QVariantMap &configuration) |
| Sets the connection configuration. More...
|
|
void | setUri (const QString &uri) |
| Sets the connection data source URI to uri. More...
|
|
virtual void | store (const QString &name) const =0 |
| Stores the connection in the settings. More...
|
|
QString | uri () const |
| Returns the connection data source URI string representation. More...
|
|