Wed Apr 6 11:30:13 2011

Asterisk developer's documentation


odbc_class Struct Reference


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
timeval last_negative_connect
unsigned int limit
struct {
   odbc_class *   next
list
char name [80]
timeval negative_connection_cache
ao2_containerobj_container
char * password
char * sanitysql
char * username

Detailed Description

Definition at line 117 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 128 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 134 of file res_odbc.c.

Referenced by load_odbc_config(), and odbc_obj_connect().

int count

Running count of pooled connections

Definition at line 132 of file res_odbc.c.

unsigned int delme

Purge the class

Definition at line 127 of file res_odbc.c.

char dsn[80]

Definition at line 121 of file res_odbc.c.

Referenced by load_odbc_config(), odbc_obj_connect(), and odbc_obj_disconnect().

SQLHENV env

Definition at line 125 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 129 of file res_odbc.c.

Referenced by find_transaction().

unsigned int haspool

Boolean - TDS databases need this

Definition at line 126 of file res_odbc.c.

unsigned int idlecheck

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

Definition at line 133 of file res_odbc.c.

Referenced by load_odbc_config().

unsigned int isolation

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

Definition at line 130 of file res_odbc.c.

Referenced by find_transaction().

struct timeval last_negative_connect

When a connection fails, when did that last occur?

Definition at line 138 of file res_odbc.c.

Referenced by odbc_obj_connect().

unsigned int limit

Maximum number of database handles we will allow

Definition at line 131 of file res_odbc.c.

Referenced by load_odbc_config().

struct { ... } list

Referenced by ast_odbc_clear_cache(), ast_odbc_find_column(), ast_odbc_find_table(), destroy_table_cache(), find_transaction(), mark_transaction_active(), odbc_txn_free(), and release_transaction().

char name[80]

Definition at line 120 of file res_odbc.c.

Referenced by ast_odbc_retrieve_transaction_obj(), odbc_obj_connect(), odbc_obj_disconnect(), and odbc_register_class().

struct timeval negative_connection_cache

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

Definition at line 136 of file res_odbc.c.

struct odbc_class* next

Definition at line 119 of file res_odbc.c.

struct ao2_container* obj_container

List of handles associated with this class

Definition at line 140 of file res_odbc.c.

char* password

Definition at line 123 of file res_odbc.c.

Referenced by load_odbc_config(), and odbc_obj_connect().

char* sanitysql

Definition at line 124 of file res_odbc.c.

Referenced by ast_odbc_sanity_check(), and load_odbc_config().

char* username

Definition at line 122 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 Wed Apr 6 11:30:13 2011 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7