Home / Open source / Terimber 2.0
mysql_dbserver Class Referenceimplements the dbserver interface for MYSQL
More...
#include <mysqlsrv.h>
List of all members.
Detailed Description
implements the dbserver interface for MYSQL
Definition at line 39 of file mysqlsrv.h.
Constructor & Destructor Documentation
mysql_dbserver::mysql_dbserver |
( |
size_t |
ident |
) |
|
mysql_dbserver::~mysql_dbserver |
( |
|
) |
[virtual] |
Member Function Documentation
void mysql_dbserver::v_connect |
( |
bool |
trusted_connection, |
|
|
const char * |
connection_string | |
|
) |
| | [protected, virtual] |
void mysql_dbserver::v_disconnect |
( |
|
) |
[protected, virtual] |
void mysql_dbserver::v_start_transaction |
( |
|
) |
[protected, virtual] |
void mysql_dbserver::v_commit |
( |
|
) |
[protected, virtual] |
void mysql_dbserver::v_rollback |
( |
|
) |
[protected, virtual] |
bool mysql_dbserver::v_is_connect_alive |
( |
|
) |
[protected, virtual] |
void mysql_dbserver::v_before_execute |
( |
|
) |
[protected, virtual] |
pure virtual functions
allocates resources before executing sql statement
Implements dbserver_impl.
Definition at line 150 of file mysqlsrv.cpp.
References _desc, dbserver_impl::_sql, _stmt, dbserver_impl::ACTION_EXEC_PROC, dbserver_impl::ACTION_EXEC_PROC_ASYNC, dbserver_impl::ACTION_EXEC_SQL, dbserver_impl::ACTION_EXEC_SQL_ASYNC, dbserver_impl::ACTION_OPEN_PROC, dbserver_impl::ACTION_OPEN_PROC_ASYNC, dbserver_impl::ACTION_OPEN_SQL, dbserver_impl::ACTION_OPEN_SQL_ASYNC, check_retcode, check_retcode_db, dbserver_impl::get_action(), and base_string< T >::length().
void mysql_dbserver::v_after_execute |
( |
|
) |
[protected, virtual] |
void mysql_dbserver::v_before_bind_columns |
( |
|
) |
[protected, virtual] |
void mysql_dbserver::v_execute |
( |
|
) |
[protected, virtual] |
void mysql_dbserver::v_close |
( |
|
) |
[protected, virtual] |
void mysql_dbserver::v_fetch |
( |
|
) |
[protected, virtual] |
fetches block of rows
Implements dbserver_impl.
Definition at line 239 of file mysqlsrv.cpp.
References dbserver_impl::_cols, dbserver_impl::_data, dbserver_impl::_data_allocator, dbserver_impl::_fetched_rows, dbserver_impl::_requested_rows, dbserver_impl::_start_row, _stmt, exception::_throw(), check_retcode, base_list< T >::end(), dbserver_impl::get_state(), _list< T, A >::push_back(), base_vector< T >::size(), STATE_INTERRUPTED, v_convert_one_value(), and v_execute().
void mysql_dbserver::v_replace_quote |
( |
|
) |
[protected, virtual] |
replaces quote to the available sign for native drive
Implements dbserver_impl.
Definition at line 288 of file mysqlsrv.cpp.
References dbserver_impl::_columns_allocator, _param_binders, dbserver_impl::_params, dbserver_impl::_quote, dbserver_impl::_sql, dbserver_impl::_temp_allocator, exception::_throw(), byte_allocator::allocate(), check_pointer(), base_string< T >::length(), os_minus_one, _vector< T, A >::resize(), base_vector< T >::size(), str_template::strcpy(), and valid_delimeters.
void mysql_dbserver::v_bind_one_param |
( |
size_t |
index |
) |
[protected, virtual] |
binds one param by index
Implements dbserver_impl.
Definition at line 342 of file mysqlsrv.cpp.
References binder::_bind_buffer, binder::_in_out, binder::_max_length, binder::_native_type, _param_binders, dbserver_impl::_params, binder::_precision, binder::_real_length, binder::_scale, _stmt, dbserver_impl::_temp_allocator, exception::_throw(), binder::_type, binder::_value, byte_allocator::allocate(), _terimber_xml_value_::boolVal, _terimber_xml_value_::bufVal, _terimber_xml_value_::bVal, check_pointer(), check_retcode, date::convert_from(), _terimber_xml_value_::cVal, db_binary, db_bool, db_date, db_decimal, db_double, db_float, db_numeric, db_sb1, db_sb2, db_sb4, db_sb8, db_string, db_ub1, db_ub2, db_ub4, db_ub8, db_wstring, _terimber_xml_value_::dblVal, _terimber_xml_value_::fltVal, numeric::format(), _terimber_xml_value_::intVal, is_param_out(), _terimber_xml_value_::iVal, base_string< T >::length(), _terimber_xml_value_::lVal, terimber_db_value::nullVal, os_minus_one, numeric::parse_orcl(), numeric::precision(), numeric::scale(), base_vector< T >::size(), str_template::strcpy(), str_template::strlen(), _terimber_xml_value_::strVal, _terimber_xml_value_::uintVal, _terimber_xml_value_::uiVal, _terimber_xml_value_::ulVal, str_template::unicode_to_multibyte(), terimber_db_value::val, and _terimber_xml_value_::wstrVal.
void mysql_dbserver::v_bind_one_column |
( |
size_t |
index |
) |
[protected, virtual] |
binds one column by index
Implements dbserver_impl.
Definition at line 575 of file mysqlsrv.cpp.
References binder::_bind_buffer, binder::_bind_type, dbserver_impl::_cols, _column_binders, binder::_max_length, binder::_native_type, binder::_real_length, _stmt, dbserver_impl::_temp_allocator, exception::_throw(), binder::_value, byte_allocator::allocate(), check_pointer(), check_retcode, _terimber_xml_value_::cVal, _terimber_xml_value_::dblVal, _terimber_xml_value_::fltVal, _terimber_xml_value_::iVal, _terimber_xml_value_::lVal, terimber_db_value::nullVal, base_vector< T >::size(), _terimber_xml_value_::uintVal, and terimber_db_value::val.
size_t mysql_dbserver::v_get_number_columns |
( |
|
) |
[protected, virtual] |
void mysql_dbserver::v_convert_one_value |
( |
size_t |
row, |
|
|
size_t |
col, |
|
|
terimber_db_value & |
val | |
|
) |
| | [protected, virtual] |
converts one field value to variant buffer
Implements dbserver_impl.
Definition at line 671 of file mysqlsrv.cpp.
References binder::_bind_buffer, dbserver_impl::_cols, _column_binders, dbserver_impl::_data_allocator, binder::_max_length, binder::_native_type, binder::_real_length, dbserver_impl::_temp_allocator, exception::_throw(), binder::_value, byte_allocator::allocate(), _terimber_xml_value_::bufVal, check_pointer(), date::convert_to(), _terimber_xml_value_::cVal, _terimber_xml_value_::dblVal, _terimber_xml_value_::fltVal, _terimber_xml_value_::intVal, _terimber_xml_value_::iVal, _terimber_xml_value_::lVal, terimber_db_value::nullVal, numeric::orcl_len(), numeric::persist_orcl(), str_template::strlen(), _terimber_xml_value_::strVal, and terimber_db_value::val.
Referenced by v_fetch().
void mysql_dbserver::v_get_one_column_info |
( |
size_t |
index |
) |
[protected, virtual] |
gets one column info from native driver
Implements dbserver_impl.
Definition at line 779 of file mysqlsrv.cpp.
References binder::_bind_type, dbserver_impl::_cols, dbserver_impl::_columns_allocator, binder::_max_length, binder::_native_type, binder::_precision, binder::_real_length, binder::_scale, _stmt, binder::_value, terimber_db_value::nullVal, and binder::set_name().
void mysql_dbserver::v_form_sql_string |
( |
|
) |
[protected, virtual] |
forms SQL expression depending on type selected and native driver
Implements dbserver_impl.
Definition at line 796 of file mysqlsrv.cpp.
References dbserver_impl::_params, dbserver_impl::_quote, dbserver_impl::_sql, dbserver_impl::_temp_allocator, dbserver_impl::ACTION_EXEC_PROC, dbserver_impl::ACTION_EXEC_PROC_ASYNC, dbserver_impl::ACTION_EXEC_SQL, dbserver_impl::ACTION_EXEC_SQL_ASYNC, dbserver_impl::ACTION_FETCH, dbserver_impl::ACTION_FETCH_ASYNC, dbserver_impl::ACTION_NONE, dbserver_impl::ACTION_OPEN_PROC, dbserver_impl::ACTION_OPEN_PROC_ASYNC, dbserver_impl::ACTION_OPEN_SQL, dbserver_impl::ACTION_OPEN_SQL_ASYNC, dbserver_impl::get_action(), and base_vector< T >::size().
void mysql_dbserver::v_rebind_one_param |
( |
size_t |
index |
) |
[protected, virtual] |
rebinds one param for input/output or output params
Implements dbserver_impl.
Definition at line 840 of file mysqlsrv.cpp.
References binder::_bind_buffer, binder::_in_out, binder::_max_length, binder::_native_type, dbserver_impl::_params, binder::_real_length, dbserver_impl::_temp_allocator, exception::_throw(), binder::_value, binder::allocate_value(), _terimber_xml_value_::bufVal, check_pointer(), date::convert_to(), _terimber_xml_value_::dblVal, _terimber_xml_value_::intVal, is_param_out(), terimber_db_value::nullVal, numeric::orcl_len(), os_minus_one, numeric::persist_orcl(), str_template::strlen(), and terimber_db_value::val.
void mysql_dbserver::v_interrupt_async |
( |
|
) |
[protected, virtual] |
dbtypes mysql_dbserver::v_native_type_to_client_type |
( |
size_t |
native_type |
) |
[protected, virtual] |
converts types
Implements dbserver_impl.
Definition at line 945 of file mysqlsrv.cpp.
References db_binary, db_date, db_decimal, db_double, db_float, db_sb1, db_sb2, db_sb4, db_sb8, db_string, and db_unknown.
void mysql_dbserver::parse_connection_string |
( |
const char * |
connection_string, |
|
|
string_t & |
user, |
|
|
string_t & |
password, |
|
|
string_t & |
host, |
|
|
unsigned short & |
port, |
|
|
string_t & |
database | |
|
) |
| | [private] |
Member Data Documentation
The documentation for this class was generated from the following files:
|
|