SQLite for C++
|
Public Member Functions | |
std::vector< std::string > | get_col_names () |
std::vector< std::string > | get_row () |
int | num_cols () |
bool | next () |
Additional Inherited Members | |
Private Member Functions inherited from SQLite::Conn::PreparedStatement | |
PreparedStatement (Conn &conn, const std::string &stmt) | |
sqlite3_stmt * | get_ptr () |
void | commit () |
void | next () |
void | close () noexcept |
void | bind (Args... args) |
template<typename T > | |
void | bind (const size_t i, const T value) |
template<> | |
void | bind (const size_t i, const char *value) |
template<> | |
void | bind (const size_t i, const std::string value) |
template<> | |
void | bind (const size_t i, const int value) |
template<> | |
void | bind (const size_t i, const long int value) |
template<> | |
void | bind (const size_t i, double value) |
Private Attributes inherited from SQLite::Conn::PreparedStatement | |
int | params |
Conn * | conn |
std::shared_ptr< stmt_base > | base = std::make_shared<stmt_base>() |
const char * | unused |
Class for representing results from a SQL query
std::vector< std::string > SQLite::Conn::ResultSet::get_col_names | ( | ) |
Retrieve the column names of a SQL query result
std::vector< std::string > SQLite::Conn::ResultSet::get_row | ( | ) |
After calling next_result(), use this to type-cast the next row from a query into a string vector
bool SQLite::Conn::ResultSet::next | ( | ) |
Retrieves the next row from the a SQL result set, or returns False if we're done
int SQLite::Conn::ResultSet::num_cols | ( | ) |
Returns the number of columns in a SQL query result