18 #ifndef QGSSQLITEUTILS_H 19 #define QGSSQLITEUTILS_H 23 #include "qgis_core.h" 45 void operator()(
sqlite3 *database );
57 void operator()( sqlite3_stmt *statement );
80 QString columnName(
int column )
const;
85 QString columnAsText(
int column )
const;
90 qlonglong columnAsInt64(
int column )
const;
95 double columnAsDouble(
int column )
const;
100 int columnCount()
const;
121 int open(
const QString &path );
128 int open_v2(
const QString &path,
int flags,
const char *zVfs );
133 QString errorMessage()
const;
149 int exec(
const QString &sql, QString &errorMessage SIP_OUT )
const;
166 static QString quotedString(
const QString &value );
177 #endif // QGSSQLITEUTILS_H Closes a sqlite3 database.
Unique pointer for sqlite3 prepared statements, which automatically finalizes the statement when the ...
Contains utilities for working with Sqlite data sources.
std::unique_ptr< GEOSGeometry, GeosDeleter > unique_ptr
Scoped GEOS pointer.
QString CORE_EXPORT QgsSqlite3Mprintf(const char *format,...)
Wraps sqlite3_mprintf() by automatically freeing the memory.
Finalizes an sqlite3 statement.
Unique pointer for sqlite3 databases, which automatically closes the database when the pointer goes o...