18 #ifndef QGSSQLITEUTILS_H
19 #define QGSSQLITEUTILS_H
21 #include "qgis_core.h"
46 void operator()(
sqlite3 *database )
const;
58 void operator()( sqlite3_stmt *statement )
const;
81 QString columnName(
int column )
const;
86 QString columnAsText(
int column )
const;
91 QByteArray columnAsBlob(
int column )
const;
96 qlonglong columnAsInt64(
int column )
const;
101 double columnAsDouble(
int column )
const;
106 int columnCount()
const;
127 int open(
const QString &path );
134 int open_v2(
const QString &path,
int flags,
const char *zVfs );
139 QString errorMessage()
const;
155 int exec(
const QString &sql, QString &errorMessage
SIP_OUT )
const;
181 static QString quotedString(
const QString &value );
188 static QString quotedIdentifier(
const QString &identifier );
196 static QString quotedValue(
const QVariant &value );
203 static QStringList systemTables();
214 static QSet<QString> uniqueFields(
sqlite3 *connection,
const QString &tableName, QString &errorMessage )
SIP_SKIP;
225 static long long nextSequenceValue(
sqlite3 *connection,
const QString &tableName, QString errorMessage )
SIP_SKIP;
229 #endif // QGSSQLITEUTILS_H