#include <db_reader.h>
Public Member Functions | |
Construction | |
| CL_DBReader () | |
| Constructs a database reader. | |
| CL_DBReader (const CL_SharedPtr< CL_DBReader_Impl > &impl) | |
| Constructs a DBReader. | |
| ~CL_DBReader () | |
Attributes | |
| int | get_column_count () const |
| Returns the number of columns in the result set. | |
| CL_String | get_column_name (int index) const |
| Returns the name of the specified column index. | |
| int | get_name_index (const CL_StringRef &name) const |
| Returns the index of the specified column name. | |
| CL_String | get_column_string (int index) const |
| Retrieves the value of the specified column as a string. | |
| bool | get_column_bool (int index) const |
| Retrieves the value of the specified column as a boolean. | |
| int | get_column_int (int index) const |
| Retrieves the value of the specified column as an integer. | |
| double | get_column_double (int index) const |
| Retrieves the value of the specified column as a double. | |
| CL_DateTime | get_column_datetime (int index) const |
| Retrieves the value of the specified column as a CL_DateTime. | |
| CL_DataBuffer | get_column_binary (int index) const |
| Retrieves the value of the specified column as a CL_DataBuffer. | |
| CL_DBReaderProvider * | get_provider () |
| Returns the provider interface for this reader. | |
Operations | |
| bool | retrieve_row () |
| Retrieves a row from the command execution result. | |
| void | close () |
| Closes the database reader. | |
|
|
Constructs a database reader.
|
|
|
Constructs a DBReader.
|
|
|
|
|
|
Closes the database reader.
|
|
|
Retrieves the value of the specified column as a CL_DataBuffer.
|
|
|
Retrieves the value of the specified column as a boolean.
|
|
|
Returns the number of columns in the result set.
|
|
|
Retrieves the value of the specified column as a CL_DateTime.
|
|
|
Retrieves the value of the specified column as a double.
|
|
|
Retrieves the value of the specified column as an integer.
|
|
|
Returns the name of the specified column index.
|
|
|
Retrieves the value of the specified column as a string.
|
|
|
Returns the index of the specified column name.
|
|
|
Returns the provider interface for this reader.
|
|
|
Retrieves a row from the command execution result.
|
1.4.6