ark::database::SqliteStatement
Defined in header “ark/database/sqlite_helpers.hh”.
A wrapper around a sqlite3 statement. Handles deallocation of the statement and makes it a bit easier to manage in C++.
Methods
-
SqliteStatement(sqlite3 * database, sqlite3_stmt * statement)
Constructor. Takes ownership of the given statement. -
~SqliteStatement()
Destructor. Releases the statement. -
SqliteStatement()
Disallows copies. -
SqliteStatement()
-
SqliteStatement & operator=()
-
SqliteStatement & operator=()
-
const char * column_text(int index)
Returns text at the given index (if any). -
void bind_text(int index, const std::string & text)
Binds the given static text to the statement at the parameter index. -
bool step()
Steps the given statement, returning true if more data is available, throwing an error otherwise. -
void reset()
Resets the statement, preparing it for use again.