#include <PreparedStatement.hpp>
Public Member Functions | |
| bool | bind (int position, bool val) |
| bool | bind (int position, char val)=delete |
| bool | bind (int position, const char *s) |
| char* to std::string. | |
| bool | bind (int position, const std::string &t_str) |
| bool | bind (int position, const std::wstring &w) |
| wstring to std::string. | |
| bool | bind (int position, const wchar_t *w) |
| wchar_t* to std::string. | |
| bool | bind (int position, double val) |
| bool | bind (int position, int val) |
| bool | bind (int position, unsigned int val) |
| template<typename... Args> | |
| bool | bindAll (Args &&... args) |
| boost::optional< double > | execAndReturnFirstDouble () const |
| boost::optional< int > | execAndReturnFirstInt () const |
| boost::optional< std::string > | execAndReturnFirstString () const |
| boost::optional< std::vector< double > > | execAndReturnVectorOfDouble () const |
| execute a statement and return the results (if any) in a vector of double | |
| boost::optional< std::vector< int > > | execAndReturnVectorOfInt () const |
| execute a statement and return the results (if any) in a vector of int | |
| boost::optional< std::vector< std::string > > | execAndReturnVectorOfString () const |
| execute a statement and return the results (if any) in a vector of string | |
| void | execAndThrowOnError () |
| int | execute () |
| PreparedStatement & | operator= (const PreparedStatement &)=delete |
| PreparedStatement (const PreparedStatement &)=delete | |
| template<typename... Args> | |
| PreparedStatement (const std::string &t_stmt, sqlite3 *t_db, bool t_transaction, Args &&... args) | |
| PreparedStatement (const std::string &t_stmt, sqlite3 *t_db, bool t_transaction=false) | |
| ~PreparedStatement () | |
Static Public Member Functions | |
| static std::string | columnText (const unsigned char *column) |
| static int | get_sqlite3_bind_parameter_count (sqlite3_stmt *statement) |
|
delete |
|
inline |
|
inline |
| openstudio::PreparedStatement::~PreparedStatement | ( | ) |
|
inline |
|
delete |
|
inline |
char* to std::string.
| bool openstudio::PreparedStatement::bind | ( | int | position, |
| const std::string & | t_str ) |
|
inline |
wstring to std::string.
|
inline |
wchar_t* to std::string.
| bool openstudio::PreparedStatement::bind | ( | int | position, |
| double | val ) |
|
inline |
|
inlinestatic |
| boost::optional< double > openstudio::PreparedStatement::execAndReturnFirstDouble | ( | ) | const |
| boost::optional< int > openstudio::PreparedStatement::execAndReturnFirstInt | ( | ) | const |
| boost::optional< std::string > openstudio::PreparedStatement::execAndReturnFirstString | ( | ) | const |
| boost::optional< std::vector< double > > openstudio::PreparedStatement::execAndReturnVectorOfDouble | ( | ) | const |
execute a statement and return the results (if any) in a vector of double
| boost::optional< std::vector< int > > openstudio::PreparedStatement::execAndReturnVectorOfInt | ( | ) | const |
execute a statement and return the results (if any) in a vector of int
| boost::optional< std::vector< std::string > > openstudio::PreparedStatement::execAndReturnVectorOfString | ( | ) | const |
execute a statement and return the results (if any) in a vector of string
|
inline |
| int openstudio::PreparedStatement::execute | ( | ) |
|
static |
|
delete |