Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cargo::sqlite3::Statement Struct Reference

#include <statement.hpp>

Public Member Functions

 Statement (sqlite3::Connection &connRef, const std::string &query)
 
 ~Statement ()
 
sqlite3_stmt * get ()
 
void reset ()
 Clears the bindings and resets the statement. More...
 

Private Attributes

::sqlite3_stmt * mStmtPtr
 
sqlite3::ConnectionmConnRef
 

Constructor & Destructor Documentation

cargo::sqlite3::Statement::Statement ( sqlite3::Connection connRef,
const std::string &  query 
)
Parameters
connRefreference to the Connection object
queryquery to be executed
cargo::sqlite3::Statement::~Statement ( )

Member Function Documentation

sqlite3_stmt * cargo::sqlite3::Statement::get ( )
Returns
pointer to the sqlite3 statement
void cargo::sqlite3::Statement::reset ( )

Clears the bindings and resets the statement.

After this the statement can be executed again

Member Data Documentation

sqlite3::Connection& cargo::sqlite3::Statement::mConnRef
private
::sqlite3_stmt* cargo::sqlite3::Statement::mStmtPtr
private

The documentation for this struct was generated from the following files: