dbc Struct Reference

#include <sqlite3odbc.h>


Detailed Description

Driver internal structure for database connection (HDBC).

Definition at line 93 of file sqlite3odbc.h.

Data Fields

int magic
 Magic cookie.
ENVenv
 Pointer to environment.
dbcnext
 Pointer to next DBC.
sqlite3 * sqlite
 SQLITE database handle.
int version
 SQLITE version number.
char * dbname
 SQLITE database name.
char * dsn
 ODBC data source name.
int timeout
 Lock timeout value.
long t0
 Start time for SQLITE busy handler.
int * ov3
 True for SQL_OV_ODBC3.
int ov3val
 True for SQL_OV_ODBC3.
int autocommit
 Auto commit state.
int intrans
 True when transaction started.
stmtstmt
 STMT list of this DBC.
int naterr
 Native error code.
char sqlstate [6]
 SQL state for SQLError().
SQLCHAR logmsg [1024]
 Message for SQLError().
int longnames
 Don't shorten column names.
int curtype
 Default cursor type.
int step_enable
 True for sqlite_compile/step/finalize.
int trans_disable
 True for no transaction support.
stmtcur_s3stmt
 Current STMT executing sqlite statement.
int s3stmt_rownum
 Current row number.
FILE * trace
 sqlite3_trace() file pointer or NULL


Field Documentation

int dbc::autocommit
 

Auto commit state.

Definition at line 105 of file sqlite3odbc.h.

Referenced by drvallocconnect(), drvexecute(), drvgetconnectattr(), drvgetconnectoption(), drvsetconnectattr(), drvsetconnectoption(), and endtran().

struct stmt* dbc::cur_s3stmt
 

Current STMT executing sqlite statement.

Definition at line 115 of file sqlite3odbc.h.

Referenced by drvgetstmtattr(), drvgetstmtoption(), drvsetconnectattr(), drvsetconnectoption(), s3stmt_end(), s3stmt_end_if(), s3stmt_start(), s3stmt_step(), and SQLDisconnect().

int dbc::curtype
 

Default cursor type.

Definition at line 112 of file sqlite3odbc.h.

Referenced by dbopen(), drvallocconnect(), drvallocstmt(), drvgetconnectattr(), and drvgetconnectoption().

char* dbc::dbname
 

SQLITE database name.

Definition at line 99 of file sqlite3odbc.h.

Referenced by dbopen(), drvgetinfo(), drvtables(), and SQLDisconnect().

char* dbc::dsn
 

ODBC data source name.

Definition at line 100 of file sqlite3odbc.h.

Referenced by dbopen(), drvgetinfo(), and SQLDisconnect().

ENV* dbc::env
 

Pointer to environment.

Definition at line 95 of file sqlite3odbc.h.

Referenced by drvallocconnect(), and drvfreeconnect().

int dbc::intrans
 

True when transaction started.

Definition at line 106 of file sqlite3odbc.h.

Referenced by drvexecute(), drvsetconnectattr(), drvsetconnectoption(), endtran(), and SQLDisconnect().

SQLCHAR dbc::logmsg[1024]
 

Message for SQLError().

Definition at line 110 of file sqlite3odbc.h.

Referenced by drverror(), drvgetdiagrec(), and setstatd().

int dbc::longnames
 

Don't shorten column names.

Definition at line 111 of file sqlite3odbc.h.

Referenced by drvallocstmt(), drvconnect(), and drvdriverconnect().

int dbc::magic
 

Magic cookie.

Definition at line 94 of file sqlite3odbc.h.

Referenced by drvallocconnect(), drvallocstmt(), drvconnect(), drverror(), drvfreeconnect(), freestmt(), and SQLDisconnect().

int dbc::naterr
 

Native error code.

Definition at line 108 of file sqlite3odbc.h.

Referenced by drverror(), drvgetdiagrec(), and setstatd().

struct dbc* dbc::next
 

Pointer to next DBC.

Definition at line 96 of file sqlite3odbc.h.

Referenced by drvallocconnect(), and drvfreeconnect().

int* dbc::ov3
 

True for SQL_OV_ODBC3.

Definition at line 103 of file sqlite3odbc.h.

Referenced by drvallocconnect(), drvallocstmt(), drvconnect(), drvfreeconnect(), drvgetconnectattr(), drvgetconnectoption(), drvgetinfo(), and endtran().

int dbc::ov3val
 

True for SQL_OV_ODBC3.

Definition at line 104 of file sqlite3odbc.h.

Referenced by drvallocconnect().

int dbc::s3stmt_rownum
 

Current row number.

Definition at line 116 of file sqlite3odbc.h.

Referenced by drvgetstmtattr(), drvgetstmtoption(), s3stmt_start(), and s3stmt_step().

sqlite3* dbc::sqlite
 

SQLITE database handle.

Definition at line 97 of file sqlite3odbc.h.

Referenced by dbopen(), drvcolumns(), drvconnect(), drvdriverconnect(), drvexecute(), drvfreeconnect(), drvgetconnectattr(), drvgettable(), drvprepare(), drvprimarykeys(), drvspecialcolumns(), drvstatistics(), drvtables(), endtran(), mkresultset(), s3stmt_start(), and SQLDisconnect().

char dbc::sqlstate[6]
 

SQL state for SQLError().

Definition at line 109 of file sqlite3odbc.h.

Referenced by drverror(), drvgetdiagrec(), and setstatd().

int dbc::step_enable
 

True for sqlite_compile/step/finalize.

Definition at line 113 of file sqlite3odbc.h.

Referenced by dbopen().

struct stmt* dbc::stmt
 

STMT list of this DBC.

Definition at line 107 of file sqlite3odbc.h.

Referenced by drvallocstmt(), drvfreeconnect(), and freestmt().

long dbc::t0
 

Start time for SQLITE busy handler.

Definition at line 102 of file sqlite3odbc.h.

Referenced by busy_handler().

int dbc::timeout
 

Lock timeout value.

Definition at line 101 of file sqlite3odbc.h.

Referenced by busy_handler(), and dbopen().

FILE* dbc::trace
 

sqlite3_trace() file pointer or NULL

Definition at line 117 of file sqlite3odbc.h.

Referenced by dbopen(), dbtrace(), dbtraceapi(), dbtracerc(), drvconnect(), drvdriverconnect(), drvfreeconnect(), drvprepare(), s3stmt_coltype(), s3stmt_step(), and SQLDisconnect().

int dbc::trans_disable
 

True for no transaction support.

Definition at line 114 of file sqlite3odbc.h.

Referenced by dbopen(), and drvexecute().

int dbc::version
 

SQLITE version number.

Definition at line 98 of file sqlite3odbc.h.

Referenced by drvallocconnect().


The documentation for this struct was generated from the following file:
Generated on 24 Apr 2006 by doxygen.
Contact: chw@ch-werner.de