|
Public Member Functions |
int | bv_bind_by_pos (Tptr res, int pos, tvartype type, Tptr data) |
char | bv_finished (Tptr res) |
int | bv_get_count (Tptr res) |
char | bv_get_filled (Tptr res, int pos) |
int | bv_get_pos_by_name (Tptr res, const CDBstring &pos, int *res_vec, int *res_vec_size) |
int | bv_set_unfilled (Tptr res) |
| CDB (const CDBstring &driver_name) |
| CDB (CDB &c) |
| CDB () |
void | close_query (Tptr res) |
Tptr | connect (const CDBstring &conn_str) |
int | count_cols (Tptr res) |
int | count_rows (Tptr res) |
void | disconnect (Tptr conn) |
CDBstring | error (Tptr conn) |
CDBstring | error_msg () |
| Retrieve error messages.
|
int | exec_query (Tptr db, Tptr *res, const CDBstring &str_sql) |
CDBstring | get_driver_name () |
| Get name of used driver object.
|
driver_func_t | get_static_func () |
int | getcdbopts () |
int | last_error () |
| Retrieve loading errors made by Constructors.
|
int | load (const CDBstring &driver_name) |
| Dynamic loading of shared objects driver_*.so.
|
int | load_static (driver_func_t func) |
| Static loading of driver_func_t.
|
int | open_query (Tptr db, Tptr *res, const CDBstring &str_sql) |
int | process (Tptr res) |
int | read_date (Tptr res, int row, int col, int *year, int *mon, int *day) |
int | read_datetime (Tptr res, int row, int col, int *year, int *mon, int *day, int *hour, int *min, int *sec) |
int | read_double (Tptr res, int row, int col, double *d_ptr) |
int | read_integer (Tptr res, int row, int col, int *p) |
int | read_isnull (Tptr res, int row, int col) |
int | read_long_integer (Tptr res, int row, int col, int64_t *p) |
CDBstring | read_string (Tptr res, int row, int col) |
int | read_time (Tptr res, int row, int col, int *hour, int *min, int *sec) |
int | search_col (Tptr res, const CDBstring &fn) |
void | setopt (Tptr conn, int opt) |
CDBstring | sqlerr (Tptr res) |
int | status (Tptr conn) |
CDBstring | version () |
virtual | ~CDB () |
Private Attributes |
void * | handle |
CDBstring | mdriver_name |
CDBstring | merror_msg |
int | mlast_error |
driver_func_t | mstatic_func |
driver_symbols_t * | syms |
This class implements the dynamic and static loading of driver's. Internally this class wrapps around driver_symbols_t structure which is initialized by several drivers.