18#ifndef QGSSPATIALITEUTILS_H
19#define QGSSPATIALITEUTILS_H
64 int open(
const QString &path );
85 int open_v2(
const QString &path,
int flags,
const char *zVfs );
Unique pointer for spatialite databases, which automatically closes the database when the pointer goe...
void reset(sqlite3 *handle)=delete
It is not allowed to set an arbitrary sqlite3 handle on this object.
int open(const QString &path)
Opens the database at the specified file path.
sqlite3_statement_unique_ptr prepare(const QString &sql, int &resultCode)
Prepares a sql statement, returning the result.
int open_v2(const QString &path, int flags, const char *zVfs)
Opens the database at the specified file path.
QString errorMessage() const
Returns the most recent error message encountered by the database.
void reset()
Will close the connection and set the internal pointer to nullptr.
Unique pointer for sqlite3 prepared statements, which automatically finalizes the statement when the ...
Closes a spatialite database.
void operator()(sqlite3 *database)
Closes an spatialite database.
void * mSpatialiteContext
Keep track of the spatialite context.