SQLite for C++
Public Member Functions | List of all members
SQLite::Conn::ResultSet Class Reference
Inheritance diagram for SQLite::Conn::ResultSet:
SQLite::Conn::PreparedStatement

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
 
Connconn
 
std::shared_ptr< stmt_basebase = std::make_shared<stmt_base>()
 
const char * unused
 

Detailed Description

Class for representing results from a SQL query

Member Function Documentation

◆ get_col_names()

std::vector< std::string > SQLite::Conn::ResultSet::get_col_names ( )

Retrieve the column names of a SQL query result

◆ get_row()

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

◆ next()

bool SQLite::Conn::ResultSet::next ( )

Retrieves the next row from the a SQL result set, or returns False if we're done

◆ num_cols()

int SQLite::Conn::ResultSet::num_cols ( )

Returns the number of columns in a SQL query result


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