Database reader. More...
#include <db_reader.h>
Public Member Functions | |
Construction | |
DBReader () | |
Constructs a database reader. More... | |
DBReader (const std::shared_ptr< DBReader_Impl > &impl) | |
Constructs a DBReader. More... | |
~DBReader () | |
Attributes | |
int | get_column_count () const |
Returns the number of columns in the result set. More... | |
std::string | get_column_name (int index) const |
Returns the name of the specified column index. More... | |
int | get_name_index (const std::string &name) const |
Returns the index of the specified column name. More... | |
DBValue | get_column_value (int index) const |
Retrieves the value of the specified column. More... | |
DBValue | get_column_value (const std::string &name) const |
Retrieves the value of the specified column name. More... | |
std::string | get_column_string (int index) const |
Retrieves the value of the specified column as a string. More... | |
bool | get_column_bool (int index) const |
Retrieves the value of the specified column as a boolean. More... | |
char | get_column_char (int index) const |
Retrieves the value of the specified column as a boolean. More... | |
unsigned char | get_column_uchar (int index) const |
Retrieves the value of the specified column as a boolean. More... | |
int | get_column_int (int index) const |
Retrieves the value of the specified column as an integer. More... | |
unsigned int | get_column_uint (int index) const |
Retrieves the value of the specified column as an integer. More... | |
double | get_column_double (int index) const |
Retrieves the value of the specified column as a double. More... | |
DateTime | get_column_datetime (int index) const |
Retrieves the value of the specified column as a DateTime. More... | |
DataBuffer | get_column_binary (int index) const |
Retrieves the value of the specified column as a DataBuffer. More... | |
std::string | get_column_string (const std::string &column_name) const |
Retrieves the value of the specified column as a string. More... | |
bool | get_column_bool (const std::string &column_name) const |
Retrieves the value of the specified column as a boolean. More... | |
char | get_column_char (const std::string &column_name) const |
Retrieves the value of the specified column as a boolean. More... | |
unsigned char | get_column_uchar (const std::string &column_name) const |
Retrieves the value of the specified column as a boolean. More... | |
int | get_column_int (const std::string &column_name) const |
Retrieves the value of the specified column as an integer. More... | |
unsigned int | get_column_uint (const std::string &column_name) const |
Retrieves the value of the specified column as an integer. More... | |
double | get_column_double (const std::string &column_name) const |
Retrieves the value of the specified column as a double. More... | |
DateTime | get_column_datetime (const std::string &column_name) const |
Retrieves the value of the specified column as a DateTime. More... | |
DataBuffer | get_column_binary (const std::string &column_name) const |
Retrieves the value of the specified column as a DataBuffer. More... | |
DBReaderProvider * | get_provider () |
Returns the provider interface for this reader. More... | |
Operations | |
bool | retrieve_row () |
Retrieves a row from the command execution result. More... | |
void | close () |
Closes the database reader. More... | |
Database reader.