RTS API Documentation  1.10.11
Data Fields
switch_database_interface Struct Reference

Abstract interface to a database module. More...

#include <switch_module_interfaces.h>

+ Collaboration diagram for switch_database_interface:

Data Fields

const char * interface_name
 
uint32_t flags
 
switch_status_t(* handle_new )(switch_cache_db_database_interface_options_t database_interface_options, switch_database_interface_handle_t **dih)
 
switch_status_t(* handle_destroy )(switch_database_interface_handle_t **dih)
 
switch_status_t(* flush )(switch_database_interface_handle_t *dih)
 
switch_status_t(* exec_detailed )(const char *file, const char *func, int line, switch_database_interface_handle_t *dih, const char *sql, char **err)
 
switch_status_t(* exec_string )(switch_database_interface_handle_t *dih, const char *sql, char *resbuf, size_t len, char **err)
 
switch_status_t(* sql_set_auto_commit_attr )(switch_database_interface_handle_t *dih, switch_bool_t on)
 
switch_status_t(* commit )(switch_database_interface_handle_t *dih)
 
switch_status_t(* rollback )(switch_database_interface_handle_t *dih)
 
switch_status_t(* 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)
 
switch_status_t(* affected_rows )(switch_database_interface_handle_t *dih, int *affected_rows)
 
char ** prefixes
 
switch_thread_rwlock_trwlock
 
int refs
 
switch_mutex_treflock
 
switch_loadable_module_interface_tparent
 
struct switch_database_interfacenext
 

Detailed Description

Abstract interface to a database module.

Definition at line 620 of file switch_module_interfaces.h.

Field Documentation

◆ affected_rows

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().

◆ callback_exec_detailed

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.

◆ commit

switch_status_t(* switch_database_interface::commit) (switch_database_interface_handle_t *dih)

◆ exec_detailed

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.

◆ exec_string

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().

◆ flags

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.

◆ flush

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().

◆ handle_destroy

switch_status_t(* switch_database_interface::handle_destroy) (switch_database_interface_handle_t **dih)

◆ handle_new

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().

◆ interface_name

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().

◆ next

struct switch_database_interface* switch_database_interface::next

◆ parent

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().

◆ prefixes

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().

◆ reflock

switch_mutex_t* switch_database_interface::reflock

Definition at line 642 of file switch_module_interfaces.h.

◆ refs

int switch_database_interface::refs

Definition at line 641 of file switch_module_interfaces.h.

◆ rollback

switch_status_t(* switch_database_interface::rollback) (switch_database_interface_handle_t *dih)

Definition at line 633 of file switch_module_interfaces.h.

◆ rwlock

switch_thread_rwlock_t* switch_database_interface::rwlock

Definition at line 640 of file switch_module_interfaces.h.

Referenced by switch_loadable_module_unprocess().

◆ sql_set_auto_commit_attr

switch_status_t(* switch_database_interface::sql_set_auto_commit_attr) (switch_database_interface_handle_t *dih, switch_bool_t on)

The documentation for this struct was generated from the following file: