QGIS API Documentation  3.8.0-Zanzibar (11aff65)
Static Public Member Functions | List of all members
QgsSqliteUtils Class Reference

Contains utilities for working with Sqlite data sources. More...

#include <qgssqliteutils.h>

Static Public Member Functions

static QString quotedIdentifier (const QString &identifier)
 Returns a properly quoted version of identifier. More...
 
static QString quotedString (const QString &value)
 Returns a quoted string value, surround by ' characters and with special characters correctly escaped. More...
 
static QString quotedValue (const QVariant &value)
 Returns a properly quoted and escaped version of value for use in SQL strings. More...
 
static QStringList systemTables ()
 Returns a string list of SQLite (and spatialite) system tables. More...
 

Detailed Description

Contains utilities for working with Sqlite data sources.

Since
QGIS 3.4

Definition at line 167 of file qgssqliteutils.h.

Member Function Documentation

◆ quotedIdentifier()

QString QgsSqliteUtils::quotedIdentifier ( const QString &  identifier)
static

Returns a properly quoted version of identifier.

Since
QGIS 3.6

Definition at line 120 of file qgssqliteutils.cpp.

◆ quotedString()

QString QgsSqliteUtils::quotedString ( const QString &  value)
static

Returns a quoted string value, surround by ' characters and with special characters correctly escaped.

Definition at line 110 of file qgssqliteutils.cpp.

◆ quotedValue()

QString QgsSqliteUtils::quotedValue ( const QVariant &  value)
static

Returns a properly quoted and escaped version of value for use in SQL strings.

Since
QGIS 3.6

Definition at line 127 of file qgssqliteutils.cpp.

◆ systemTables()

QStringList QgsSqliteUtils::systemTables ( )
static

Returns a string list of SQLite (and spatialite) system tables.

Since
QGIS 3.8

Definition at line 154 of file qgssqliteutils.cpp.


The documentation for this class was generated from the following files: