Class SqliteConnector¶
-
class
SqliteConnector
¶ -
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
>
voidquery_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¶
-
bool
isNull
(const int row, const int col) const¶
-
auto
getSqlitePtr
() const¶
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
¶
-