odbc_class Struct Reference

Collaboration diagram for odbc_class:

Collaboration graph
[legend]

Data Fields

unsigned int backslash_is_escape:1
unsigned int conntimeout
int count
unsigned int delme:1
char dsn [80]
SQLHENV env
unsigned int forcecommit:1
unsigned int haspool:1
unsigned int idlecheck
unsigned int isolation
struct timeval last_negative_connect
unsigned int limit
struct {
   struct odbc_class *   next
list
char name [80]
struct timeval negative_connection_cache
struct ao2_containerobj_container
char * password
char * sanitysql
char * username

Detailed Description

Definition at line 127 of file res_odbc.c.


Field Documentation

unsigned int backslash_is_escape

On this database, the backslash is a native escape sequence

Definition at line 138 of file res_odbc.c.

Referenced by ast_odbc_backslash_is_escape().

unsigned int conntimeout

Maximum time the connection process should take

Definition at line 144 of file res_odbc.c.

Referenced by load_odbc_config(), and odbc_obj_connect().

int count

Running count of pooled connections

Definition at line 142 of file res_odbc.c.

Referenced by _ast_odbc_request_obj2(), data_odbc_provider_handler(), and handle_cli_odbc_show().

unsigned int delme

Purge the class

Definition at line 137 of file res_odbc.c.

char dsn[80]

SQLHENV env

Definition at line 135 of file res_odbc.c.

Referenced by odbc_obj_connect().

unsigned int forcecommit

Should uncommitted transactions be auto-committed on handle release?

Definition at line 139 of file res_odbc.c.

Referenced by find_transaction().

unsigned int haspool

Boolean - TDS databases need this

Definition at line 136 of file res_odbc.c.

unsigned int idlecheck

Recheck the connection if it is idle for this long (in seconds)

Definition at line 143 of file res_odbc.c.

Referenced by _ast_odbc_request_obj2(), and load_odbc_config().

unsigned int isolation

Flags for how the DB should deal with data in other, uncommitted transactions

Definition at line 140 of file res_odbc.c.

Referenced by _ast_odbc_request_obj2(), and find_transaction().

struct timeval last_negative_connect [read]

When a connection fails, when did that last occur?

Definition at line 148 of file res_odbc.c.

Referenced by _ast_odbc_request_obj2(), and odbc_obj_connect().

unsigned int limit

Maximum number of database handles we will allow

Definition at line 141 of file res_odbc.c.

Referenced by load_odbc_config().

struct { ... } list

char name[80]

struct timeval negative_connection_cache [read]

When a connection fails, cache that failure for how long?

Definition at line 146 of file res_odbc.c.

Referenced by _ast_odbc_request_obj2().

struct odbc_class* next [read]

Definition at line 129 of file res_odbc.c.

struct ao2_container* obj_container [read]

List of handles associated with this class

Definition at line 150 of file res_odbc.c.

Referenced by _ast_odbc_request_obj2().

char* password

Definition at line 133 of file res_odbc.c.

Referenced by load_odbc_config(), and odbc_obj_connect().

char* sanitysql

Definition at line 134 of file res_odbc.c.

Referenced by ast_odbc_sanity_check(), and load_odbc_config().

char* username

Definition at line 132 of file res_odbc.c.

Referenced by load_odbc_config(), and odbc_obj_connect().


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

Generated on Thu Apr 16 06:36:59 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6