result can only be created by a query object. An object of this class is not copyable.
More...
#include <result.hpp>
|
| | ~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.
|
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.
◆ construct_params
◆ result()
◆ ~result()
| sqlite::result::~result |
( |
| ) |
|
◆ access_check()
| void sqlite::result::access_check |
( |
int | | ) |
|
|
private |
◆ get_binary() [1/2]
| void sqlite::result::get_binary |
( |
int | idx, |
|
|
std::vector< unsigned char > & | vec ) |
Used to retrieve a binary value.
- Parameters
-
| 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 |
◆ get_binary() [2/2]
| void sqlite::result::get_binary |
( |
int | idx, |
|
|
void * | buf, |
|
|
size_t | buf_size ) |
Used to retrieve a binary value.
- Parameters
-
| 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 |
◆ get_binary_size()
| size_t sqlite::result::get_binary_size |
( |
int | idx | ) |
|
Returns the size of the data at the given index in bytes.
- Parameters
-
| idx | column index of the current row in the results |
- Returns
- a size_t value which represents the number of bytes needed for the binary data at idx
◆ get_column_count()
| int sqlite::result::get_column_count |
( |
| ) |
|
Returns the number of columns.
- Returns
- an integer
◆ get_column_decltype()
| std::string sqlite::result::get_column_decltype |
( |
int | idx | ) |
|
Returns the type of the column.
- Parameters
-
| idx | column index of the current row in the results |
- Returns
- a string
◆ get_column_name()
| std::string sqlite::result::get_column_name |
( |
int | idx | ) |
|
Returns the column name at the given index.
- Parameters
-
| idx | column index of the current row in the results |
- Returns
- a std::string object containing the name of the column
◆ get_column_type()
| type sqlite::result::get_column_type |
( |
int | idx | ) |
|
Returns the type of the column.
- Parameters
-
| idx | column index of the current row in the results |
- Returns
- the column type
◆ get_double()
| double sqlite::result::get_double |
( |
int | idx | ) |
|
Returns the data at the given index as double.
- Parameters
-
| idx | column index of the current row in the results |
- Returns
- a double
◆ get_int()
| int sqlite::result::get_int |
( |
int | idx | ) |
|
Returns the data at the given index as 32-Bit Integer.
- Returns
- a 32-Bit Integer
◆ get_int64()
| boost::int64_t sqlite::result::get_int64 |
( |
int | idx | ) |
|
Returns the data at the given index as 64-Bit Integer.
- Parameters
-
| idx | column index of the current row in the results |
- Returns
- a 64-Bit Integer
◆ get_row_count()
| int sqlite::result::get_row_count |
( |
| ) |
|
Returns the number of rows in the result.
- Returns
- an integer
◆ get_string()
| std::string sqlite::result::get_string |
( |
int | idx | ) |
|
Returns the data at the given index as String.
- Parameters
-
| idx | column index of the current row in the results |
- Returns
- a std::string object
◆ get_variant()
| variant_t sqlite::result::get_variant |
( |
int | index | ) |
|
Retrieves a the current typ into variant_t.
- Parameters
-
| idx | column index of the current row in the results |
- Returns
- a value of variant_t
◆ next_row()
| bool sqlite::result::next_row |
( |
| ) |
|
Increases the row index.
- Returns
- returns false if there is no more row, otherwise it returns true
◆ query
◆ m_columns
| int sqlite::result::m_columns |
|
private |
◆ m_params
◆ m_row_count
| int sqlite::result::m_row_count |
|
private |
The documentation for this struct was generated from the following file: