SQLite3 result set implementation.
More...
#include <sqlite3ResultSet.hpp>
|
| | SQLite3ResultSet (sqlite3_stmt *stmt) |
| |
| virtual | ~SQLite3ResultSet () |
| |
| virtual bool | next () throw (SqlException) |
| |
| | ResultSet () |
| |
| virtual | ~ResultSet () |
| |
| template<typename T > |
| const T * | get (std::size_t idx) throw (SqlException) |
| |
| template<typename T > |
| bool | get (std::size_t idx, T &out) throw (SqlException) |
| |
| template<typename T > |
| bool | get (const std::string field, T &out) throw (SqlException) |
| |
| template<typename T > |
| const T * | get (const std::string field) throw (SqlException) |
| |
| template<> |
| bool | get (std::size_t idx, int64_t &out) throw (SqlException) |
| |
| template<> |
| bool | get (std::size_t idx, int32_t &out) throw (SqlException) |
| |
| template<> |
| bool | get (std::size_t idx, int16_t &out) throw (SqlException) |
| |
| template<> |
| bool | get (std::size_t idx, uint64_t &out) throw (SqlException) |
| |
| template<> |
| bool | get (std::size_t idx, uint32_t &out) throw (SqlException) |
| |
| template<> |
| bool | get (std::size_t idx, uint16_t &out) throw (SqlException) |
| |
| template<> |
| const int64_t * | get (std::size_t idx) throw (SqlException) |
| |
| template<> |
| const int32_t * | get (std::size_t idx) throw (SqlException) |
| |
| template<> |
| const int16_t * | get (std::size_t idx) throw (SqlException) |
| |
| template<> |
| const uint64_t * | get (std::size_t idx) throw (SqlException) |
| |
| template<> |
| const uint32_t * | get (std::size_t idx) throw (SqlException) |
| |
| template<> |
| const uint16_t * | get (std::size_t idx) throw (SqlException) |
| |
|
| virtual bool | getValue (std::size_t idx, std::string &out) throw (SqlException) |
| |
|
| std::map< std::string, std::size_t > | _fields |
| |
SQLite3 result set implementation.
Implements ResultSet for SQLite3
- Author
- Vincent Lachenal
- Since
- 0.1
| SQLite3ResultSet::SQLite3ResultSet |
( |
sqlite3_stmt * |
stmt | ) |
|
| SQLite3ResultSet::~SQLite3ResultSet |
( |
| ) |
|
|
virtual |
| bool SQLite3ResultSet::getValue |
( |
std::size_t |
idx, |
|
|
std::string & |
out |
|
) |
| |
| throw | ( | SqlException |
| ) | | |
|
protectedvirtual |
Retrieve string value from result set according to SQL database engine.
- Parameters
-
| idx | the field index |
| out | the result |
Implements anch::sql::ResultSet.
Fetch next row in SQL result set.
- Returns
true if next row exists, false otherwise
- Exceptions
-
Implements anch::sql::ResultSet.
The documentation for this class was generated from the following files: