Lines Matching full:statement

29 #include "utils/sqlite/statement.hpp"
103 /// Internal implementation for sqlite::statement.
104 struct utils::sqlite::statement::impl : utils::noncopyable {
105 /// The database this statement belongs to.
108 /// The SQLite 3 internal statement.
111 /// Cache for the column names in a statement; lazily initialized.
116 /// \param db_ The database this statement belongs to. Be aware that we
121 /// \param stmt_ The SQLite internal statement.
143 /// Initializes a statement object.
148 /// \param db The database this statement belongs to.
149 /// \param raw_stmt A void pointer representing a SQLite native statement of
151 sqlite::statement::statement(database& db, void* raw_stmt) : in statement() function in sqlite::statement
157 /// Destructor for the statement.
159 /// Remember that statements are reference-counted, so the statement will only
161 sqlite::statement::~statement(void) in ~statement()
166 /// Executes a statement that is not supposed to return any data.
172 /// \pre The statement to execute will not produce any rows.
174 sqlite::statement::step_without_results(void) in step_without_results()
177 INV_MSG(!data, "The statement should not have produced any rows, but it " in step_without_results()
182 /// Performs a processing step on the statement.
184 /// \return True if the statement returned a row; false if the processing has
189 sqlite::statement::step(void) in step()
194 LD("Step statement; no more rows"); in step()
197 LD("Step statement; row available for processing"); in step()
210 sqlite::statement::column_count(void) in column_count()
222 sqlite::statement::column_name(const int index) in column_name()
237 sqlite::statement::column_type(const int index) in column_type()
251 sqlite::statement::column_id(const char* name) in column_id()
279 sqlite::statement::column_blob(const int index) in column_blob()
293 sqlite::statement::column_double(const int index) in column_double()
308 sqlite::statement::column_int(const int index) in column_int()
321 sqlite::statement::column_int64(const int index) in column_int64()
337 sqlite::statement::column_text(const int index) in column_text()
355 sqlite::statement::column_bytes(const int index) in column_bytes()
371 sqlite::statement::safe_column_blob(const char* name) in safe_column_blob()
390 sqlite::statement::safe_column_double(const char* name) in safe_column_double()
409 sqlite::statement::safe_column_int(const char* name) in safe_column_int()
428 sqlite::statement::safe_column_int64(const char* name) in safe_column_int64()
447 sqlite::statement::safe_column_text(const char* name) in safe_column_text()
466 sqlite::statement::safe_column_bytes(const char* name) in safe_column_bytes()
477 /// Resets a statement to allow further processing.
479 sqlite::statement::reset(void) in reset()
485 /// Binds a blob to a prepared statement.
489 /// execution of the statement.
493 sqlite::statement::bind(const int index, const blob& b) in bind()
501 /// Binds a double value to a prepared statement.
508 sqlite::statement::bind(const int index, const double value) in bind()
515 /// Binds an integer value to a prepared statement.
522 sqlite::statement::bind(const int index, const int value) in bind()
529 /// Binds a 64-bit integer value to a prepared statement.
536 sqlite::statement::bind(const int index, const int64_t value) in bind()
543 /// Binds a NULL value to a prepared statement.
549 sqlite::statement::bind(const int index, const null& /* null */) in bind()
556 /// Binds a text string to a prepared statement.
567 sqlite::statement::bind(const int index, const std::string& text) in bind()
579 sqlite::statement::bind_parameter_count(void) in bind_parameter_count()
591 sqlite::statement::bind_parameter_index(const std::string& name) in bind_parameter_index()
595 PRE_MSG(index > 0, "Parameter name not in statement"); in bind_parameter_index()
606 sqlite::statement::bind_parameter_name(const int index) in bind_parameter_name()
616 sqlite::statement::clear_bindings(void) in clear_bindings()