boost_sqlite 1
A sqlite C++ library
|
A reference to a value to temporary bind for an execute statement. Most values are captures by reference. More...
#include <include/boost/sqlite/statement.hpp>
Public Member Functions | |
param_ref ()=default | |
Default construct a parameter, gives null . | |
param_ref (blob_view blob) | |
Bind a blob. | |
param_ref (double value) | |
Bind a floating point value. | |
template<typename I , typename = typename std::enable_if<std::is_integral<I>::value>::type> | |
param_ref (I value) | |
Bind an integer. | |
param_ref (std::nullptr_t) | |
Bind null. | |
template<typename T > | |
param_ref (std::unique_ptr< T > ptr) | |
Bind pointer value to the parameter. | |
template<typename T , typename Deleter > | |
param_ref (std::unique_ptr< T, Deleter > ptr, typename std::enable_if< std::is_empty< Deleter >::value &&std::is_default_constructible< Deleter >::value, int >::type *=nullptr) | |
Bind pointer value with a function custom deleter to the parameter. The deleter needs to be default constructible. | |
template<typename T > | |
param_ref (std::unique_ptr< T, void(*)(T *)> ptr) | |
Bind pointer value with a function as deleter to the parameter. | |
param_ref (string_view text) | |
Bind a string. | |
template<typename T > | |
param_ref (T &&t, decltype(variant2::visit(make_visitor(), std::forward< T >(t))) *=nullptr) | |
Construct param_ref from a variant. | |
param_ref (variant2::monostate) | |
Bind null. | |
param_ref (zero_blob zb) | |
Bind a zero_blob value, i.e. a blob that initialized by zero. | |
int | apply (sqlite3_stmt *stmt, int c) const |
Apply the param_ref to a statement. | |
A reference to a value to temporary bind for an execute statement. Most values are captures by reference.
Definition at line 27 of file statement.hpp.
|
inline |
Bind pointer value to the parameter.
Definition at line 71 of file statement.hpp.
|
inline |
Bind pointer value with a function as deleter to the parameter.
Definition at line 82 of file statement.hpp.
|
inline |
Bind pointer value with a function custom deleter to the parameter. The deleter needs to be default constructible.
Definition at line 94 of file statement.hpp.