boost_sqlite 1
A sqlite C++ library
|
A context that can be passed into scalar functions. More...
#include <include/boost/sqlite/function.hpp>
Public Member Functions | |
template<std::size_t Idx> | |
auto | get () -> element< Idx > & |
Returns the value in the context at position Idx . Throws if the value isn't set. | |
connection | get_connection () const |
Returns the connection of the context. | |
template<std::size_t Idx> | |
auto | get_if () -> element< Idx > * |
Returns the value in the context at position Idx . Returns nullptr .value isn't set. | |
template<std::size_t Idx> | |
void | set (element< Idx > value) |
Set the value in the context at position Idx | |
void | set_error (cstring_ref message, int code=SQLITE_ERROR) |
Set the an error through the context, instead of throwing it. | |
template<typename T > | |
auto | set_result (T &&val) |
Set the result through the context, instead of returning it. | |
A context that can be passed into scalar functions.
Args | The argument that can be stored in the context. |
Definition at line 53 of file function.hpp.