#include <Database.h>
Public Types | |
| enum | BindPolicy { BindTransient, BindStatic } |
Public Member Functions | |
| bool | expired () |
| unsigned int | count_parameters () |
| PreparedStatement & | bind (const unsigned int index, const double value) |
| PreparedStatement & | bind (const unsigned int index, const int value) |
| PreparedStatement & | bind (const unsigned int index, const unsigned int value) |
| PreparedStatement & | bind (const unsigned int index, const std::int16_t value) |
| PreparedStatement & | bind (const unsigned int index, const std::uint16_t value) |
| PreparedStatement & | bind (const unsigned int index, const bool value) |
| PreparedStatement & | bind (const unsigned int index, const std::int64_t value) |
| PreparedStatement & | bind (const unsigned int index, const std::uint64_t value) |
| PreparedStatement & | bind (const unsigned int index, const long value) |
| PreparedStatement & | bind (const unsigned int index, const unsigned long value) |
| PreparedStatement & | bind (const unsigned int index, const char *const value, const unsigned int bytes, const BindPolicy policy=BindTransient) |
| PreparedStatement & | bind (const unsigned int index, const char *const value, const BindPolicy policy=BindTransient) |
| PreparedStatement & | bind (const unsigned int index, const string &value, const BindPolicy policy=BindTransient) |
| PreparedStatement & | bind (const unsigned int index, const void *value, const unsigned int bytes, const BindPolicy policy=BindTransient) |
| PreparedStatement & | bind (const unsigned int index, const blob_type &blob, const BindPolicy policy=BindTransient) |
| template<typename T > | |
| PreparedStatement & | bind (const unsigned int index, const T &t) |
| PreparedStatement & | unbind (const unsigned int index) |
| PreparedStatement & | unbind () |
| void | reset () |
| QueryResult | execute () |
| template<typename functor > | |
| unsigned int | for_each (const functor &apply) |
| unsigned int | count_columns () |
| string | column_name (const unsigned int index) |
| template<typename... P> | |
| PreparedStatement & | bindp (const P &...p) |
| template<typename... P> | |
| QueryResult | execute (const P &...p) |
| template<typename... P, typename functor > | |
| unsigned int | for_each (const functor &apply, const P &...p) |
Friends | |
| class | Database |
Detailed Description
Definition at line 47 of file Database.h.
Member Enumeration Documentation
Definition at line 62 of file Database.h.
Member Function Documentation
| PreparedStatement& ssrc::wispers::database::PreparedStatement::bind | ( | const unsigned int | index, |
| const double | value | ||
| ) | [inline] |
Definition at line 72 of file Database.h.
References value().
| PreparedStatement& ssrc::wispers::database::PreparedStatement::bind | ( | const unsigned int | index, |
| const int | value | ||
| ) | [inline] |
Definition at line 81 of file Database.h.
References value().
| PreparedStatement& ssrc::wispers::database::PreparedStatement::bind | ( | const unsigned int | index, |
| const unsigned int | value | ||
| ) | [inline] |
Definition at line 89 of file Database.h.
References value().
| PreparedStatement& ssrc::wispers::database::PreparedStatement::bind | ( | const unsigned int | index, |
| const std::int16_t | value | ||
| ) | [inline] |
Definition at line 95 of file Database.h.
References value().
| PreparedStatement& ssrc::wispers::database::PreparedStatement::bind | ( | const unsigned int | index, |
| const std::uint16_t | value | ||
| ) | [inline] |
Definition at line 101 of file Database.h.
References value().
| PreparedStatement& ssrc::wispers::database::PreparedStatement::bind | ( | const unsigned int | index, |
| const bool | value | ||
| ) | [inline] |
Definition at line 107 of file Database.h.
References value().
| PreparedStatement& ssrc::wispers::database::PreparedStatement::bind | ( | const unsigned int | index, |
| const std::int64_t | value | ||
| ) | [inline] |
Definition at line 115 of file Database.h.
References value().
| PreparedStatement& ssrc::wispers::database::PreparedStatement::bind | ( | const unsigned int | index, |
| const std::uint64_t | value | ||
| ) | [inline] |
Definition at line 124 of file Database.h.
References value().
| PreparedStatement& ssrc::wispers::database::PreparedStatement::bind | ( | const unsigned int | index, |
| const long | value | ||
| ) | [inline] |
Definition at line 131 of file Database.h.
References value().
| PreparedStatement& ssrc::wispers::database::PreparedStatement::bind | ( | const unsigned int | index, |
| const unsigned long | value | ||
| ) | [inline] |
Definition at line 140 of file Database.h.
References value().
| PreparedStatement& ssrc::wispers::database::PreparedStatement::bind | ( | const unsigned int | index, |
| const char *const | value, | ||
| const unsigned int | bytes, | ||
| const BindPolicy | policy = BindTransient |
||
| ) | [inline] |
Definition at line 147 of file Database.h.
References value().
| PreparedStatement& ssrc::wispers::database::PreparedStatement::bind | ( | const unsigned int | index, |
| const char *const | value, | ||
| const BindPolicy | policy = BindTransient |
||
| ) | [inline] |
Definition at line 160 of file Database.h.
| PreparedStatement& ssrc::wispers::database::PreparedStatement::bind | ( | const unsigned int | index, |
| const string & | value, | ||
| const BindPolicy | policy = BindTransient |
||
| ) | [inline] |
Definition at line 167 of file Database.h.
| PreparedStatement& ssrc::wispers::database::PreparedStatement::bind | ( | const unsigned int | index, |
| const void * | value, | ||
| const unsigned int | bytes, | ||
| const BindPolicy | policy = BindTransient |
||
| ) | [inline] |
Definition at line 174 of file Database.h.
References value().
| PreparedStatement& ssrc::wispers::database::PreparedStatement::bind | ( | const unsigned int | index, |
| const blob_type & | blob, | ||
| const BindPolicy | policy = BindTransient |
||
| ) | [inline] |
Definition at line 186 of file Database.h.
| PreparedStatement& ssrc::wispers::database::PreparedStatement::bind | ( | const unsigned int | index, |
| const T & | t | ||
| ) | [inline] |
Definition at line 202 of file Database.h.
| PreparedStatement& ssrc::wispers::database::PreparedStatement::bindp | ( | const P &... | p | ) | [inline] |
Definition at line 289 of file Database.h.
| string ssrc::wispers::database::PreparedStatement::column_name | ( | const unsigned int | index | ) | [inline] |
Definition at line 258 of file Database.h.
| unsigned int ssrc::wispers::database::PreparedStatement::count_columns | ( | ) | [inline] |
Definition at line 254 of file Database.h.
| unsigned int ssrc::wispers::database::PreparedStatement::count_parameters | ( | ) | [inline] |
Definition at line 68 of file Database.h.
Definition at line 227 of file Database.h.
References QueryResult, and detail::step().
| QueryResult ssrc::wispers::database::PreparedStatement::execute | ( | const P &... | p | ) | [inline] |
Definition at line 294 of file Database.h.
| bool ssrc::wispers::database::PreparedStatement::expired | ( | ) | [inline] |
Definition at line 64 of file Database.h.
| unsigned int ssrc::wispers::database::PreparedStatement::for_each | ( | const functor & | apply | ) | [inline] |
Definition at line 244 of file Database.h.
References ssrc::wispers::database::QueryResult::result_set.
| unsigned int ssrc::wispers::database::PreparedStatement::for_each | ( | const functor & | apply, |
| const P &... | p | ||
| ) | [inline] |
Definition at line 299 of file Database.h.
| void ssrc::wispers::database::PreparedStatement::reset | ( | ) | [inline] |
Definition at line 222 of file Database.h.
| PreparedStatement& ssrc::wispers::database::PreparedStatement::unbind | ( | const unsigned int | index | ) | [inline] |
Definition at line 208 of file Database.h.
Definition at line 216 of file Database.h.
Friends And Related Function Documentation
friend class Database [friend] |
Definition at line 48 of file Database.h.
The documentation for this class was generated from the following file: