VSQLite++
0.3
|
result can only be created by a query object. An object of this class is not copyable. More...
#include <result.hpp>
Public Member Functions | |
~result () | |
destructor | |
bool | next_row () |
Increases the row index. | |
int | get_row_count () |
Returns the number of rows in the result. | |
int | get_column_count () |
Returns the number of columns. | |
type | get_column_type (int idx) |
Returns the type of the column. | |
std::string | get_column_decltype (int idx) |
Returns the type of the column. | |
variant_t | get_variant (int index) |
Retrieves a the current typ into variant_t. | |
int | get_int (int idx) |
Returns the data at the given index as 32-Bit Integer. | |
boost::int64_t | get_int64 (int idx) |
Returns the data at the given index as 64-Bit Integer. | |
std::string | get_string (int idx) |
Returns the data at the given index as String. | |
double | get_double (int idx) |
Returns the data at the given index as double. | |
size_t | get_binary_size (int idx) |
Returns the size of the data at the given index in bytes. | |
void | get_binary (int idx, void *buf, size_t buf_size) |
Used to retrieve a binary value. | |
void | get_binary (int idx, std::vector< unsigned char > &vec) |
Used to retrieve a binary value. | |
std::string | get_column_name (int idx) |
Returns the column name at the given index. | |
Private Types | |
typedef boost::shared_ptr < result_construct_params_private > | construct_params |
Private Member Functions | |
result (construct_params) | |
void | access_check (int) |
Private Attributes | |
construct_params | m_params |
int | m_columns |
int | m_row_count |
Friends | |
struct | query |
result can only be created by a query object. An object of this class is not copyable.
Definition at line 46 of file result.hpp.
typedef boost::shared_ptr<result_construct_params_private> sqlite::result::construct_params [private] |
Definition at line 48 of file result.hpp.
sqlite::result::result | ( | construct_params | ) | [private] |
destructor
void sqlite::result::access_check | ( | int | ) | [private] |
void sqlite::result::get_binary | ( | int | idx, |
void * | buf, | ||
size_t | buf_size | ||
) |
Used to retrieve a binary value.
idx | column index of the current row in the results |
buf | pointer to the buffer which should be filled |
buf_size | size in bytes of the buffer |
void sqlite::result::get_binary | ( | int | idx, |
std::vector< unsigned char > & | vec | ||
) |
Used to retrieve a binary value.
idx | column index of the current row in the results |
vec | a std::vector<unsigned char> which will be filled the method will increase the allocated buffer if needed |
size_t sqlite::result::get_binary_size | ( | int | idx | ) |
Returns the size of the data at the given index in bytes.
idx | column index of the current row in the results |
int sqlite::result::get_column_count | ( | ) |
Returns the number of columns.
std::string sqlite::result::get_column_decltype | ( | int | idx | ) |
Returns the type of the column.
idx | column index of the current row in the results |
std::string sqlite::result::get_column_name | ( | int | idx | ) |
Returns the column name at the given index.
idx | column index of the current row in the results |
type sqlite::result::get_column_type | ( | int | idx | ) |
Returns the type of the column.
idx | column index of the current row in the results |
double sqlite::result::get_double | ( | int | idx | ) |
Returns the data at the given index as double.
idx | column index of the current row in the results |
int sqlite::result::get_int | ( | int | idx | ) |
Returns the data at the given index as 32-Bit Integer.
boost::int64_t sqlite::result::get_int64 | ( | int | idx | ) |
Returns the data at the given index as 64-Bit Integer.
idx | column index of the current row in the results |
int sqlite::result::get_row_count | ( | ) |
Returns the number of rows in the result.
std::string sqlite::result::get_string | ( | int | idx | ) |
Returns the data at the given index as String.
idx | column index of the current row in the results |
variant_t sqlite::result::get_variant | ( | int | index | ) |
Retrieves a the current typ into variant_t.
idx | column index of the current row in the results |
bool sqlite::result::next_row | ( | ) |
Increases the row index.
friend struct query [friend] |
Definition at line 49 of file result.hpp.
int sqlite::result::m_columns [private] |
Definition at line 144 of file result.hpp.
construct_params sqlite::result::m_params [private] |
Definition at line 143 of file result.hpp.
int sqlite::result::m_row_count [private] |
Definition at line 145 of file result.hpp.