Home / Open source / Terimber 2.0
#include "allinc.h"
#include "threadpool/thread.h"
#include "base/common.h"
#include "base/vector.h"
#include "base/list.h"
#include "base/except.h"
#include "db/dbaccess.h"
#include "dbvalue.h"
Go to the source code of this file.
Value:
return true; } \ catch( exception& x ) { _code = x.get_code(); _error = x.what(); _set_action(ACTION_NONE); _set_state(STATE_OK); } \ catch(...) { _error = "Unknown Exception"; } return false;
Definition at line 86 of file db.h.
Referenced by dbserver_impl::close_sql(), dbserver_impl::exec_proc(), dbserver_impl::exec_sql(), dbserver_impl::fetch_data(), dbserver_impl::open_proc(), and dbserver_impl::open_sql().
return true; } \ catch( exception& x ) { _code = x.get_code(); _error = x.what(); } \ catch(...) { _error = "Unknown Exception"; } return false;
Definition at line 90 of file db.h.
Referenced by dbserver_impl::commit(), dbserver_impl::connect(), dbserver_impl::disconnect(), dbserver_impl::rollback(), and dbserver_impl::start_transaction().
} catch( exception& x ) { _code = x.get_code(); _error = x.what(); } \ catch(...) { _error = "Unknown Exception"; }
Definition at line 94 of file db.h.
macros to handle exception situation
Definition at line 84 of file db.h.
Referenced by dbserver_impl::close_sql(), dbserver_impl::commit(), dbserver_impl::connect(), dbserver_impl::disconnect(), dbserver_impl::exec_proc(), dbserver_impl::exec_sql(), dbserver_impl::fetch_data(), dbserver_impl::open_proc(), dbserver_impl::open_sql(), dbserver_impl::rollback(), and dbserver_impl::start_transaction().
vector of binders with external allocator
Definition at line 312 of file db.h.
list of binders
Definition at line 315 of file db.h.
vector of binders
Definition at line 309 of file db.h.
list of rows with external allocator where row is a vector of db values
Definition at line 319 of file db.h.
state of module
Definition at line 76 of file db.h.
[inline]
checks if this is input parameter
Definition at line 46 of file db.h.
References db_param_in, and db_param_in_out.
Referenced by odbc_dbserver::v_bind_one_param().
checks if this is output parameter
Definition at line 61 of file db.h.
References db_param_in_out, and db_param_out.
Referenced by orcl_dbserver::v_bind_one_param(), odbc_dbserver::v_bind_one_param(), mysql_dbserver::v_bind_one_param(), odbc_dbserver::v_form_sql_string(), orcl_dbserver::v_rebind_one_param(), odbc_dbserver::v_rebind_one_param(), and mysql_dbserver::v_rebind_one_param().
exception map
module is already connected
Definition at line 102 of file db.h.
Referenced by dbserver_impl::_check_disconnect().
module is already initilaized
Definition at line 100 of file db.h.
module is already open sql statement
Definition at line 106 of file db.h.
Referenced by dbserver_impl::_check_close().
module is alrady in transacion
Definition at line 104 of file db.h.
Referenced by dbserver_impl::_check_out_transaction().
invalid pointer
Definition at line 108 of file db.h.
custom exception
Definition at line 97 of file db.h.
invalid module state
Definition at line 98 of file db.h.
Referenced by dbserver_impl::_check_state().
number of parameters in sql statement or stored procedure does not math actually binded parameters
Definition at line 109 of file db.h.
module is not connected
Definition at line 101 of file db.h.
Referenced by dbserver_impl::_check_connect().
module is not intialized
Definition at line 99 of file db.h.
module is not in open state
Definition at line 105 of file db.h.
Referenced by dbserver_impl::_check_open().
module is not in transaction
Definition at line 103 of file db.h.
Referenced by dbserver_impl::_check_in_transaction().
Definition at line 112 of file db.h.
module is processing sql statement
Definition at line 107 of file db.h.
Referenced by dbserver_impl::_check_action().
timeout occurred
Definition at line 110 of file db.h.
index out of bounderies
Definition at line 111 of file db.h.