QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Unique pointer for sqlite3 prepared statements, which automatically finalizes the statement when the pointer goes out of scope or is reset. More...
#include <qgssqliteutils.h>
Public Member Functions | |
QByteArray | columnAsBlob (int column) const |
Returns the column value from the current statement row as raw byte array. More... | |
double | columnAsDouble (int column) const |
Gets column value from the current statement row as a double. More... | |
qlonglong | columnAsInt64 (int column) const |
Gets column value from the current statement row as a long long integer (64 bits). More... | |
QString | columnAsText (int column) const |
Returns the column value from the current statement row as a string. More... | |
int | columnCount () const |
Gets the number of columns that this statement returns. More... | |
QString | columnName (int column) const |
Returns the name of column. More... | |
int | step () |
Steps to the next record in the statement, returning the sqlite3 result code. More... | |
Unique pointer for sqlite3 prepared statements, which automatically finalizes the statement when the pointer goes out of scope or is reset.
Definition at line 69 of file qgssqliteutils.h.
QByteArray sqlite3_statement_unique_ptr::columnAsBlob | ( | int | column | ) | const |
Returns the column value from the current statement row as raw byte array.
Definition at line 66 of file qgssqliteutils.cpp.
double sqlite3_statement_unique_ptr::columnAsDouble | ( | int | column | ) | const |
Gets column value from the current statement row as a double.
Definition at line 51 of file qgssqliteutils.cpp.
qlonglong sqlite3_statement_unique_ptr::columnAsInt64 | ( | int | column | ) | const |
Gets column value from the current statement row as a long long integer (64 bits).
Definition at line 73 of file qgssqliteutils.cpp.
QString sqlite3_statement_unique_ptr::columnAsText | ( | int | column | ) | const |
Returns the column value from the current statement row as a string.
Definition at line 61 of file qgssqliteutils.cpp.
int sqlite3_statement_unique_ptr::columnCount | ( | ) | const |
Gets the number of columns that this statement returns.
Definition at line 56 of file qgssqliteutils.cpp.
QString sqlite3_statement_unique_ptr::columnName | ( | int | column | ) | const |
Returns the name of column.
Definition at line 46 of file qgssqliteutils.cpp.
int sqlite3_statement_unique_ptr::step | ( | ) |
Steps to the next record in the statement, returning the sqlite3 result code.
Definition at line 41 of file qgssqliteutils.cpp.