Asterisk - The Open Source Telephony Project GIT-master-0bf3178
Data Fields
odbc_class Struct Reference
Collaboration diagram for odbc_class:
Collaboration graph
[legend]

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

◆ backslash_is_escape

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

◆ cond

ast_cond_t cond

Condition to notify any pending connection requesters

Definition at line 88 of file res_odbc.c.

◆ connection_cnt

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

◆ conntimeout

unsigned int conntimeout

Maximum time the connection process should take

Definition at line 77 of file res_odbc.c.

Referenced by load_odbc_config(), and odbc_obj_connect().

◆ delme

unsigned int delme

Purge the class

Definition at line 73 of file res_odbc.c.

◆ dsn

char dsn[80]

Definition at line 68 of file res_odbc.c.

Referenced by odbc_obj_connect().

◆ env

SQLHENV env

Definition at line 72 of file res_odbc.c.

Referenced by odbc_obj_connect().

◆ first

struct odbc_obj* first

Definition at line 84 of file res_odbc.c.

◆ forcecommit

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

◆ isolation

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.

Referenced by load_odbc_config().

◆ last

struct odbc_obj* last

Definition at line 84 of file res_odbc.c.

◆ last_negative_connect

struct timeval last_negative_connect

When a connection fails, when did that last occur?

Definition at line 82 of file res_odbc.c.

Referenced by odbc_obj_connect().

◆ 

struct { ... } list

Referenced by _ast_odbc_request_obj2().

◆ lock

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

◆ logging

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(), ast_odbc_smart_execute(), and load_odbc_config().

◆ longest_query_execution_time

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

◆ maxconnections

unsigned int maxconnections

Maximum number of allowed connections

Definition at line 78 of file res_odbc.c.

Referenced by load_odbc_config().

◆ name

char name[80]

◆ negative_connection_cache

struct timeval negative_connection_cache

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

Definition at line 80 of file res_odbc.c.

Referenced by odbc_obj_connect().

◆ next

struct odbc_class* next

Definition at line 66 of file res_odbc.c.

◆ password

char* password

Definition at line 70 of file res_odbc.c.

Referenced by load_odbc_config(), and odbc_obj_connect().

◆ prepares_executed

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

◆ queries_executed

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

◆ sanitysql

char* sanitysql

Definition at line 71 of file res_odbc.c.

Referenced by load_odbc_config().

◆ slowquerylimit

unsigned int slowquerylimit

Slow query limit (in milliseconds)

Definition at line 102 of file res_odbc.c.

Referenced by ast_odbc_direct_execute(), ast_odbc_prepare_and_execute(), and load_odbc_config().

◆ sql_text

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

◆ username

char* username

Definition at line 69 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: