Class SqliteConnector

class SqliteConnector

Public Types

enum BindType

Values:

TEXT = 1
BLOB
NULL_TYPE

Public Functions

SqliteConnector(const std::string &dbName, const std::string &dir = ".")
SqliteConnector(sqlite3 *db)
SqliteConnector()
~SqliteConnector()
void query(const std::string &queryString)
virtual void query_with_text_params(std::string const &query_only)
template<typename STRING_CONTAINER>
void query_with_text_params(STRING_CONTAINER const &query_and_text_params)
void query_with_text_params(const std::string &queryString, const std::vector<std::string> &text_param)
void query_with_text_params(const std::string &queryString, const std::vector<std::string> &text_params, const std::vector<BindType> &bind_types)
void query_with_text_param(const std::string &queryString, const std::string &text_param)
void batch_insert(const std::string &table_name, std::vector<std::vector<std::string>> &insert_vals)
virtual size_t getNumRows() const
virtual size_t getNumCols() const
template<typename T>
T getData(const int row, const int col)
bool isNull(const int row, const int col) const
auto getSqlitePtr() const

Public Members

std::vector<std::string> columnNames
std::vector<int> columnTypes

Private Functions

void throwError()

Private Members

sqlite3 *db_
std::string dbName_
bool atFirstResult_
std::vector<std::vector<NullableResult>> results_
size_t numCols_
size_t numRows_
struct NullableResult

Public Members

const std::string result
const bool is_null