18#ifndef QGSSQLITEUTILS_H
19#define QGSSQLITEUTILS_H
45 void operator()(
sqlite3 *database )
const;
57 void operator()( sqlite3_stmt *statement )
const;
79 QString columnName(
int column )
const;
84 QString columnAsText(
int column )
const;
89 QByteArray columnAsBlob(
int column )
const;
94 qlonglong columnAsInt64(
int column )
const;
99 double columnAsDouble(
int column )
const;
104 int columnCount()
const;
124 int open(
const QString &path );
131 int open_v2(
const QString &path,
int flags,
const char *zVfs );
136 QString errorMessage()
const;
152 int exec(
const QString &sql, QString &errorMessage
SIP_OUT )
const;
178 static QString quotedString(
const QString &value );
185 static QString quotedIdentifier(
const QString &identifier );
193 static QString quotedValue(
const QVariant &value );
200 static QStringList systemTables();
211 static QSet<QString> uniqueFields(
sqlite3 *connection,
const QString &tableName, QString &errorMessage )
SIP_SKIP;
222 static long long nextSequenceValue(
sqlite3 *connection,
const QString &tableName, QString errorMessage )
SIP_SKIP;
Contains utilities for working with Sqlite data sources.
Unique pointer for sqlite3 databases, which automatically closes the database when the pointer goes o...
Unique pointer for sqlite3 prepared statements, which automatically finalizes the statement when the ...
QString CORE_EXPORT qgs_sqlite3_mprintf(const char *format,...)
Wraps sqlite3_mprintf() by automatically freeing the memory.
Closes a sqlite3 database.
Finalizes an sqlite3 statement.