Lines Matching full:index
91 UNREACHABLE_MSG("Invalid index for bind argument"); in handle_bind_error()
218 /// \param index The column to request the name of.
222 sqlite::statement::column_name(const int index) in column_name() argument
224 const char* name = ::sqlite3_column_name(_pimpl->stmt, index); in column_name()
233 /// \param index The column to request the type of.
237 sqlite::statement::column_type(const int index) in column_type() argument
239 return c_type_to_cxx(::sqlite3_column_type(_pimpl->stmt, index)); in column_type()
273 /// \param index The column to retrieve.
279 sqlite::statement::column_blob(const int index) in column_blob() argument
281 PRE(column_type(index) == type_blob); in column_blob()
282 return blob(::sqlite3_column_blob(_pimpl->stmt, index), in column_blob()
283 ::sqlite3_column_bytes(_pimpl->stmt, index)); in column_blob()
289 /// \param index The column to retrieve.
293 sqlite::statement::column_double(const int index) in column_double() argument
295 PRE(column_type(index) == type_float); in column_double()
296 return ::sqlite3_column_double(_pimpl->stmt, index); in column_double()
302 /// \param index The column to retrieve.
308 sqlite::statement::column_int(const int index) in column_int() argument
310 PRE(column_type(index) == type_integer); in column_int()
311 return ::sqlite3_column_int(_pimpl->stmt, index); in column_int()
317 /// \param index The column to retrieve.
321 sqlite::statement::column_int64(const int index) in column_int64() argument
323 PRE(column_type(index) == type_integer); in column_int64()
324 return ::sqlite3_column_int64(_pimpl->stmt, index); in column_int64()
330 /// \param index The column to retrieve.
337 sqlite::statement::column_text(const int index) in column_text() argument
339 PRE(column_type(index) == type_text); in column_text()
341 _pimpl->stmt, index)); in column_text()
349 /// \param index The column to retrieve the size of.
355 sqlite::statement::column_bytes(const int index) in column_bytes() argument
357 PRE(column_type(index) == type_blob || column_type(index) == type_text); in column_bytes()
358 return ::sqlite3_column_bytes(_pimpl->stmt, index); in column_bytes()
487 /// \param index The index of the binding.
493 sqlite::statement::bind(const int index, const blob& b) in bind() argument
495 const int error = ::sqlite3_bind_blob(_pimpl->stmt, index, b.memory, b.size, in bind()
503 /// \param index The index of the binding.
508 sqlite::statement::bind(const int index, const double value) in bind() argument
510 const int error = ::sqlite3_bind_double(_pimpl->stmt, index, value); in bind()
517 /// \param index The index of the binding.
522 sqlite::statement::bind(const int index, const int value) in bind() argument
524 const int error = ::sqlite3_bind_int(_pimpl->stmt, index, value); in bind()
531 /// \param index The index of the binding.
536 sqlite::statement::bind(const int index, const int64_t value) in bind() argument
538 const int error = ::sqlite3_bind_int64(_pimpl->stmt, index, value); in bind()
545 /// \param index The index of the binding.
549 sqlite::statement::bind(const int index, const null& /* null */) in bind() argument
551 const int error = ::sqlite3_bind_null(_pimpl->stmt, index); in bind()
558 /// \param index The index of the binding.
567 sqlite::statement::bind(const int index, const std::string& text) in bind() argument
569 const int error = ::sqlite3_bind_text(_pimpl->stmt, index, text.c_str(), in bind()
575 /// Returns the index of the highest parameter.
577 /// \return A parameter index.
585 /// Returns the index of a named parameter.
589 /// \return A parameter index.
593 const int index = ::sqlite3_bind_parameter_index(_pimpl->stmt, in bind_parameter_index() local
595 PRE_MSG(index > 0, "Parameter name not in statement"); in bind_parameter_index()
596 return index; in bind_parameter_index()
600 /// Returns the name of a parameter by index.
602 /// \param index The index to query; must be valid.
606 sqlite::statement::bind_parameter_name(const int index) in bind_parameter_name() argument
608 const char* name = ::sqlite3_bind_parameter_name(_pimpl->stmt, index); in bind_parameter_name()
609 PRE_MSG(name != NULL, "Index value out of range or nameless parameter"); in bind_parameter_name()