|
QGIS API Documentation
3.0.2-Girona (307d082)
|
Unique pointer for sqlite3 databases, which automatically closes the database when the pointer goes out of scope or is reset. More...
#include <qgssqliteutils.h>

Public Member Functions | |
| QString | errorMessage () const |
| Returns the most recent error message encountered by the database. More... | |
| int | open (const QString &path) |
| Opens the database at the specified file path. More... | |
| int | open_v2 (const QString &path, int flags, const char *zVfs) |
| Opens the database at the specified file path. More... | |
| sqlite3_statement_unique_ptr | prepare (const QString &sql, int &resultCode) const |
| Prepares a sql statement, returning the result. More... | |
Unique pointer for sqlite3 databases, which automatically closes the database when the pointer goes out of scope or is reset.
Definition at line 110 of file qgssqliteutils.h.
| QString sqlite3_database_unique_ptr::errorMessage | ( | ) | const |
Returns the most recent error message encountered by the database.
Definition at line 78 of file qgssqliteutils.cpp.
| int sqlite3_database_unique_ptr::open | ( | const QString & | path | ) |
Opens the database at the specified file path.
Returns the sqlite error code, or SQLITE_OK if open was successful.
Definition at line 62 of file qgssqliteutils.cpp.
| int sqlite3_database_unique_ptr::open_v2 | ( | const QString & | path, |
| int | flags, | ||
| const char * | zVfs | ||
| ) |
Opens the database at the specified file path.
Returns the sqlite error code, or SQLITE_OK if open was successful.
Definition at line 70 of file qgssqliteutils.cpp.
| sqlite3_statement_unique_ptr sqlite3_database_unique_ptr::prepare | ( | const QString & | sql, |
| int & | resultCode | ||
| ) | const |
Prepares a sql statement, returning the result.
The resultCode argument will be filled with the sqlite3 result code.
Definition at line 83 of file qgssqliteutils.cpp.
1.8.13