...
Code Block |
---|
struct pbs_db_connection {
void *conn_db_handle; /* opaque database handle */
char *conn_host; /* host */
int conn_port; /* port */
int conn_timeout; /* connection timeout (async connects) */
int conn_state; /* connected? */
int conn_db_state; /* db up? down? starting? (async connects) */
time_t conn_connect_time; /* when was connection initiated */
int conn_trx_nest; /* incr/decr with each begin/end trx */
int conn_trx_rollback; /* rollback flag in case of nested trx */
int conn_trx_async; /* 1 - async, 0 - sync, one-shot reset */
void *conn_db_err; /* opaque database error store */
void *conn_data; /* any other db specific data */
void *conn_extend; /* db specific extra options */
}
typedef struct pbs_db_connection pbs_db_conn_t; |
...