|
Asterisk - The Open Source Telephony Project GIT-master-27fb039
|

Data Fields | ||
| unsigned int | backslash_is_escape:1 | |
| unsigned int | cache_is_queue:1 | |
| ast_cond_t | cond | |
| size_t | connection_cnt | |
| struct { | ||
| struct odbc_obj * first | ||
| struct odbc_obj * last | ||
| } | connections | |
| unsigned int | conntimeout | |
| unsigned int | cur_cache | |
| unsigned int | delme:1 | |
| char | dsn [80] | |
| SQLHENV | env | |
| unsigned int | forcecommit:1 | |
| unsigned int | isolation | |
| struct timeval | last_negative_connect | |
| struct { | ||
| struct odbc_class * next | ||
| } | list | |
| ast_mutex_t | lock | |
| unsigned int | logging | |
| long | longest_query_execution_time | |
| unsigned int | max_cache_size | |
| unsigned int | maxconnections | |
| char | name [80] | |
| struct timeval | negative_connection_cache | |
| char * | password | |
| int | prepares_executed | |
| int | queries_executed | |
| char * | sanitysql | |
| unsigned int | slowquerylimit | |
| char * | sql_text | |
| char * | username | |
Definition at line 64 of file res_odbc.c.
| unsigned int backslash_is_escape |
On this database, the backslash is a native escape sequence
Definition at line 74 of file res_odbc.c.
Referenced by ast_odbc_backslash_is_escape().
| unsigned int cache_is_queue |
Connection cache should be a queue (round-robin use) rather than a stack (last release, first re-use)
Definition at line 76 of file res_odbc.c.
Referenced by load_odbc_config().
| ast_cond_t cond |
Condition to notify any pending connection requesters
Definition at line 89 of file res_odbc.c.
| size_t connection_cnt |
The total number of current connections
Definition at line 91 of file res_odbc.c.
| struct { ... } connections |
A pool of available connections
| unsigned int conntimeout |
Maximum time the connection process should take
Definition at line 78 of file res_odbc.c.
Referenced by load_odbc_config(), and odbc_obj_connect().
| unsigned int cur_cache |
Current cached connection count, when cache_size will exceed max_cache_size, longest-idle connection will be dropped from the cache
Definition at line 107 of file res_odbc.c.
| unsigned int delme |
Purge the class
Definition at line 73 of file res_odbc.c.
| char dsn[80] |
Definition at line 68 of file res_odbc.c.
Referenced by odbc_obj_connect().
| SQLHENV env |
Definition at line 72 of file res_odbc.c.
Referenced by odbc_obj_connect().
| struct odbc_obj* first |
Definition at line 85 of file res_odbc.c.
| unsigned int forcecommit |
Should uncommitted transactions be auto-committed on handle release?
Definition at line 75 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 77 of file res_odbc.c.
Referenced by load_odbc_config().
| struct odbc_obj* last |
Definition at line 85 of file res_odbc.c.
| struct timeval last_negative_connect |
When a connection fails, when did that last occur?
Definition at line 83 of file res_odbc.c.
Referenced by odbc_obj_connect().
| struct { ... } list |
Referenced by _ast_odbc_request_obj2().
| ast_mutex_t lock |
Lock to protect the connections
Definition at line 87 of file res_odbc.c.
Referenced by ast_odbc_direct_execute(), and ast_odbc_prepare_and_execute().
| unsigned int logging |
Whether logging is enabled on this class or not
Definition at line 93 of file res_odbc.c.
Referenced by ast_odbc_direct_execute(), ast_odbc_execute_sql(), ast_odbc_prepare(), ast_odbc_prepare_and_execute(), ast_odbc_smart_execute(), and load_odbc_config().
| long longest_query_execution_time |
The longest execution time for a query executed on this class
Definition at line 99 of file res_odbc.c.
Referenced by ast_odbc_direct_execute(), and ast_odbc_prepare_and_execute().
| unsigned int max_cache_size |
Maximum number of cached connections, default is maxconnections
Definition at line 105 of file res_odbc.c.
Referenced by load_odbc_config().
| unsigned int maxconnections |
Maximum number of allowed connections
Definition at line 79 of file res_odbc.c.
Referenced by ast_odbc_get_max_connections(), and load_odbc_config().
| char name[80] |
Definition at line 67 of file res_odbc.c.
Referenced by ast_odbc_direct_execute(), ast_odbc_prepare_and_execute(), PathSegment::get_child(), SwaggerType::load(), and odbc_obj_connect().
| struct timeval negative_connection_cache |
When a connection fails, cache that failure for how long?
Definition at line 81 of file res_odbc.c.
Referenced by odbc_obj_connect().
| struct odbc_class* next |
Definition at line 66 of file res_odbc.c.
| char* password |
Definition at line 70 of file res_odbc.c.
Referenced by load_odbc_config(), and odbc_obj_connect().
| int prepares_executed |
The number of prepares executed on this class (total from all connections
Definition at line 95 of file res_odbc.c.
Referenced by ast_odbc_prepare().
| int queries_executed |
The number of queries executed on this class (total from all connections)
Definition at line 97 of file res_odbc.c.
Referenced by ast_odbc_execute_sql(), ast_odbc_prepare_and_execute(), and ast_odbc_smart_execute().
| char* sanitysql |
Definition at line 71 of file res_odbc.c.
Referenced by load_odbc_config().
| unsigned int slowquerylimit |
Slow query limit (in milliseconds)
Definition at line 103 of file res_odbc.c.
Referenced by ast_odbc_direct_execute(), ast_odbc_prepare_and_execute(), and load_odbc_config().
| char* sql_text |
The SQL query that took the longest to execute
Definition at line 101 of file res_odbc.c.
Referenced by ast_odbc_direct_execute(), and ast_odbc_prepare_and_execute().
| char* username |
Definition at line 69 of file res_odbc.c.
Referenced by load_odbc_config(), and odbc_obj_connect().