Asterisk - The Open Source Telephony Project  21.4.1
Data Fields
odbc_class Struct Reference

Data Fields

unsigned int backslash_is_escape:1
 
ast_cond_t cond
 
size_t connection_cnt
 
struct {
   struct odbc_obj *   first
 
   struct odbc_obj *   last
 
connections
 
unsigned int conntimeout
 
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 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
 

Detailed Description

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

Referenced by ast_odbc_backslash_is_escape().

ast_cond_t cond

Condition to notify any pending connection requesters

Definition at line 88 of file res_odbc.c.

size_t connection_cnt

The total number of current connections

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

unsigned int delme

Purge the class

Definition at line 73 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.

unsigned int isolation

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

Definition at line 76 of file res_odbc.c.

struct timeval last_negative_connect

When a connection fails, when did that last occur?

Definition at line 82 of file res_odbc.c.

Lock to protect the connections

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

Referenced by ast_odbc_direct_execute(), ast_odbc_execute_sql(), ast_odbc_prepare(), ast_odbc_prepare_and_execute(), and ast_odbc_smart_execute().

long longest_query_execution_time

The longest execution time for a query executed on this class

Definition at line 98 of file res_odbc.c.

Referenced by ast_odbc_direct_execute(), and ast_odbc_prepare_and_execute().

unsigned int maxconnections

Maximum number of allowed connections

Definition at line 78 of file res_odbc.c.

struct timeval negative_connection_cache

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

Definition at line 80 of file res_odbc.c.

int prepares_executed

The number of prepares executed on this class (total from all connections

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

Referenced by ast_odbc_execute_sql(), ast_odbc_prepare_and_execute(), and ast_odbc_smart_execute().

unsigned int slowquerylimit

Slow query limit (in milliseconds)

Definition at line 102 of file res_odbc.c.

Referenced by ast_odbc_direct_execute(), and ast_odbc_prepare_and_execute().

char* sql_text

The SQL query that took the longest to execute

Definition at line 100 of file res_odbc.c.

Referenced by ast_odbc_direct_execute(), and ast_odbc_prepare_and_execute().


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