sqlite3_statement_unique_ptr class

Unique pointer for sqlite3 prepared statements, which automatically finalizes the statement when the pointer goes out of scope or is reset.

Contents

Public functions

auto columnAsDouble(int column) const -> double
Gets column value from the current statement row as a double.
auto columnAsInt64(int column) const -> qlonglong
Gets column value from the current statement row as a long long integer (64 bits).
auto columnAsText(int column) const -> QString
Returns the column value from the current statement row as a string.
auto columnCount() const -> int
Gets the number of columns that this statement returns.
auto columnName(int column) const -> QString
Returns the name of column.
auto step() -> int
Steps to the next record in the statement, returning the sqlite3 result code.