RTS API Documentation
1.10.11
|
Abstract interface to a database module. More...
#include <switch_module_interfaces.h>
Abstract interface to a database module.
Definition at line 620 of file switch_module_interfaces.h.
switch_status_t(* switch_database_interface::affected_rows) (switch_database_interface_handle_t *dih, int *affected_rows) |
Definition at line 636 of file switch_module_interfaces.h.
Referenced by switch_cache_db_affected_rows().
switch_status_t(* switch_database_interface::callback_exec_detailed) (const char *file, const char *func, int line, switch_database_interface_handle_t *dih, const char *sql, switch_core_db_callback_func_t callback, void *pdata, char **err) |
Definition at line 634 of file switch_module_interfaces.h.
switch_status_t(* switch_database_interface::commit) (switch_database_interface_handle_t *dih) |
Definition at line 632 of file switch_module_interfaces.h.
Referenced by do_trans(), switch_cache_db_persistant_execute_trans_full(), and switch_core_sqldb_start().
switch_status_t(* switch_database_interface::exec_detailed) (const char *file, const char *func, int line, switch_database_interface_handle_t *dih, const char *sql, char **err) |
Definition at line 628 of file switch_module_interfaces.h.
switch_status_t(* switch_database_interface::exec_string) (switch_database_interface_handle_t *dih, const char *sql, char *resbuf, size_t len, char **err) |
Definition at line 630 of file switch_module_interfaces.h.
Referenced by switch_cache_db_execute_sql2str().
uint32_t switch_database_interface::flags |
flags indicating database specifics, see switch_database_flag_t
Definition at line 624 of file switch_module_interfaces.h.
switch_status_t(* switch_database_interface::flush) (switch_database_interface_handle_t *dih) |
Definition at line 627 of file switch_module_interfaces.h.
Referenced by switch_cache_db_release_db_handle().
switch_status_t(* switch_database_interface::handle_destroy) (switch_database_interface_handle_t **dih) |
Definition at line 626 of file switch_module_interfaces.h.
Referenced by sql_close(), and switch_cache_db_database_interface_flush_handles().
switch_status_t(* switch_database_interface::handle_new) (switch_cache_db_database_interface_options_t database_interface_options, switch_database_interface_handle_t **dih) |
Definition at line 625 of file switch_module_interfaces.h.
Referenced by _switch_cache_db_get_db_handle().
const char* switch_database_interface::interface_name |
the name of the interface
Definition at line 622 of file switch_module_interfaces.h.
Referenced by switch_loadable_module_process(), and switch_loadable_module_unprocess().
struct switch_database_interface* switch_database_interface::next |
Definition at line 644 of file switch_module_interfaces.h.
Referenced by switch_loadable_module_process(), and switch_loadable_module_unprocess().
switch_loadable_module_interface_t* switch_database_interface::parent |
Definition at line 643 of file switch_module_interfaces.h.
Referenced by _switch_cache_db_get_db_handle().
char** switch_database_interface::prefixes |
list of supported dsn prefixes
Definition at line 639 of file switch_module_interfaces.h.
Referenced by switch_loadable_module_process(), and switch_loadable_module_unprocess().
switch_mutex_t* switch_database_interface::reflock |
Definition at line 642 of file switch_module_interfaces.h.
int switch_database_interface::refs |
Definition at line 641 of file switch_module_interfaces.h.
switch_status_t(* switch_database_interface::rollback) (switch_database_interface_handle_t *dih) |
Definition at line 633 of file switch_module_interfaces.h.
switch_thread_rwlock_t* switch_database_interface::rwlock |
Definition at line 640 of file switch_module_interfaces.h.
Referenced by switch_loadable_module_unprocess().
switch_status_t(* switch_database_interface::sql_set_auto_commit_attr) (switch_database_interface_handle_t *dih, switch_bool_t on) |
Definition at line 631 of file switch_module_interfaces.h.
Referenced by do_trans(), switch_cache_db_persistant_execute_trans_full(), and switch_core_sqldb_start().