QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Public Attributes | List of all members
QgsAbstractDatabaseProviderConnection::SqlVectorLayerOptions Struct Reference

The SqlVectorLayerOptions stores all information required to create a SQL (query) layer. More...

#include <qgsabstractdatabaseproviderconnection.h>

Public Attributes

bool disableSelectAtId = false
 If SelectAtId is disabled (default is false), not all data providers support this feature: check support with SqlLayerDefinitionCapability::SelectAtId capability. More...
 
QString filter
 Additional subset string (provider-side filter), not all data providers support this feature: check support with SqlLayerDefinitionCapability::Filters capability. More...
 
QString geometryColumn
 Name of the geometry column. More...
 
QString layerName
 Optional name for the new layer. More...
 
QStringList primaryKeyColumns
 List of primary key column names. More...
 
QString sql
 The SQL expression that defines the SQL (query) layer. More...
 

Detailed Description

The SqlVectorLayerOptions stores all information required to create a SQL (query) layer.

See also
createSqlVectorLayer()
Since
QGIS 3.22

Definition at line 240 of file qgsabstractdatabaseproviderconnection.h.

Member Data Documentation

◆ disableSelectAtId

bool QgsAbstractDatabaseProviderConnection::SqlVectorLayerOptions::disableSelectAtId = false

If SelectAtId is disabled (default is false), not all data providers support this feature: check support with SqlLayerDefinitionCapability::SelectAtId capability.

Definition at line 253 of file qgsabstractdatabaseproviderconnection.h.

◆ filter

QString QgsAbstractDatabaseProviderConnection::SqlVectorLayerOptions::filter

Additional subset string (provider-side filter), not all data providers support this feature: check support with SqlLayerDefinitionCapability::Filters capability.

Definition at line 245 of file qgsabstractdatabaseproviderconnection.h.

◆ geometryColumn

QString QgsAbstractDatabaseProviderConnection::SqlVectorLayerOptions::geometryColumn

Name of the geometry column.

Definition at line 251 of file qgsabstractdatabaseproviderconnection.h.

◆ layerName

QString QgsAbstractDatabaseProviderConnection::SqlVectorLayerOptions::layerName

Optional name for the new layer.

Definition at line 247 of file qgsabstractdatabaseproviderconnection.h.

◆ primaryKeyColumns

QStringList QgsAbstractDatabaseProviderConnection::SqlVectorLayerOptions::primaryKeyColumns

List of primary key column names.

Definition at line 249 of file qgsabstractdatabaseproviderconnection.h.

◆ sql

QString QgsAbstractDatabaseProviderConnection::SqlVectorLayerOptions::sql

The SQL expression that defines the SQL (query) layer.

Definition at line 243 of file qgsabstractdatabaseproviderconnection.h.


The documentation for this struct was generated from the following file: