Lines Matching refs:sqlite

44 namespace sqlite = utils::sqlite;
50 static sqlite::type c_type_to_cxx(const int) UTILS_PURE;
58 static sqlite::type
62 case SQLITE_BLOB: return sqlite::type_blob; in c_type_to_cxx()
63 case SQLITE_FLOAT: return sqlite::type_float; in c_type_to_cxx()
64 case SQLITE_INTEGER: return sqlite::type_integer; in c_type_to_cxx()
65 case SQLITE_NULL: return sqlite::type_null; in c_type_to_cxx()
66 case SQLITE_TEXT: return sqlite::type_text; in c_type_to_cxx()
82 handle_bind_error(sqlite::database& db, const char* api_function, in handle_bind_error()
93 throw sqlite::api_error::from_database(db, api_function); in handle_bind_error()
102 struct utils::sqlite::statement::impl {
104 sqlite::database& db;
149 sqlite::statement::statement(database& db, void* raw_stmt) : in statement()
159 sqlite::statement::~statement(void) in ~statement()
172 sqlite::statement::step_without_results(void) in step_without_results()
187 sqlite::statement::step(void) in step()
208 sqlite::statement::column_count(void) in column_count()
220 sqlite::statement::column_name(const int index) in column_name()
234 sqlite::type
235 sqlite::statement::column_type(const int index) in column_type()
249 sqlite::statement::column_id(const char* name) in column_id()
276 sqlite::blob
277 sqlite::statement::column_blob(const int index) in column_blob()
291 sqlite::statement::column_double(const int index) in column_double()
306 sqlite::statement::column_int(const int index) in column_int()
319 sqlite::statement::column_int64(const int index) in column_int64()
335 sqlite::statement::column_text(const int index) in column_text()
353 sqlite::statement::column_bytes(const int index) in column_bytes()
368 sqlite::blob
369 sqlite::statement::safe_column_blob(const char* name) in safe_column_blob()
372 if (column_type(column) != sqlite::type_blob) in safe_column_blob()
373 throw sqlite::error(F("Column '%s' is not a blob") % name); in safe_column_blob()
387 sqlite::statement::safe_column_double(const char* name) in safe_column_double()
390 if (column_type(column) != sqlite::type_float) in safe_column_double()
391 throw sqlite::error(F("Column '%s' is not a float") % name); in safe_column_double()
405 sqlite::statement::safe_column_int(const char* name) in safe_column_int()
408 if (column_type(column) != sqlite::type_integer) in safe_column_int()
409 throw sqlite::error(F("Column '%s' is not an integer") % name); in safe_column_int()
423 sqlite::statement::safe_column_int64(const char* name) in safe_column_int64()
426 if (column_type(column) != sqlite::type_integer) in safe_column_int64()
427 throw sqlite::error(F("Column '%s' is not an integer") % name); in safe_column_int64()
441 sqlite::statement::safe_column_text(const char* name) in safe_column_text()
444 if (column_type(column) != sqlite::type_text) in safe_column_text()
445 throw sqlite::error(F("Column '%s' is not a string") % name); in safe_column_text()
459 sqlite::statement::safe_column_bytes(const char* name) in safe_column_bytes()
462 if (column_type(column) != sqlite::type_blob && in safe_column_bytes()
463 column_type(column) != sqlite::type_text) in safe_column_bytes()
464 throw sqlite::error(F("Column '%s' is not a blob or a string") % name); in safe_column_bytes()
471 sqlite::statement::reset(void) in reset()
485 sqlite::statement::bind(const int index, const blob& b) in bind()
500 sqlite::statement::bind(const int index, const double value) in bind()
514 sqlite::statement::bind(const int index, const int value) in bind()
528 sqlite::statement::bind(const int index, const int64_t value) in bind()
542 sqlite::statement::bind(const int index, in bind()
561 sqlite::statement::bind(const int index, const std::string& text) in bind()
573 sqlite::statement::bind_parameter_count(void) in bind_parameter_count()
585 sqlite::statement::bind_parameter_index(const std::string& name) in bind_parameter_index()
600 sqlite::statement::bind_parameter_name(const int index) in bind_parameter_name()
610 sqlite::statement::clear_bindings(void) in clear_bindings()