CERT/CC
background
background
CERT NetSA Security Suite 
Open Source Tools for Network Monitoring 
News | Downloads | Documentation | Tooltips
SiLK 1.1.2 | YAF 1.0.0 | IPA 0.3.0 | fixbuf 0.8.0 | Portal 0.8.0 | RAVE 1.9.11
AirDBC Database Abstraction Layer
libairdbc 0.2.2 API documentation

Main Page | Data Structures | File List | Data Fields | Globals

_AdbDriver Struct Reference

AirDBC driver internals. More...

#include <airdbc_drv.h>


Data Fields

const char * name
 Driver name.
const char * param_prefix
 Native SQL parameter prefix string.
gboolean param_numsuffix
 TRUE if native SQL positional parameters are numbered.
AdbConnectionFn alloc
 Driver private allocation function.
AdbConnectionFn open
 Driver connection open function.
AdbConnectionFn close
 Driver connection open function.
AdbConnectionFreeFn free
 Driver private disposal function.
AdbConnectionFn begin
 Driver transaction begin function.
AdbConnectionFn commit
 Driver transaction commit function.
AdbConnectionFn rollback
 Driver transaction rollback function.
AdbStatementFn prepare
 Driver statement prepare function.
AdbStatementFreeFn free_stmt
 Driver private statement disposal function.
AdbExecuteFn exec
 Driver statement execution function.
AdbQueryFn query
 Driver statement query function.
AdbResultSetFreeFn free_rs
 Driver private result set disposal function.
AdbResultSetFn next
 Driver result set advance function.
AdbResultSetCountFn colcount
 Driver result set column count function.
AdbResultSetNameFn colname
 Driver result set column name function.
AdbFetchFn fetch
 Driver result set fetch function.

Detailed Description

AirDBC driver internals.

May be directly accessed by AirDBC drivers. Contains a set of function pointers that define the driver's actions.


Field Documentation

AdbConnectionFn _AdbDriver::alloc
 

Driver private allocation function.

Called by adb_conn_create() to allow driver to set up driver private information for the connection.

AdbConnectionFn _AdbDriver::close
 

Driver connection open function.

Called by adb_conn_close() to close the connection to the backend.

AdbFetchFn _AdbDriver::fetch
 

Driver result set fetch function.

May return pointers to driver private information; the AirDBC API specifies that applications should copy data returned from fetch if it must be accessed beyond a call to adb_rs_next().

AdbConnectionFreeFn _AdbDriver::free
 

Driver private disposal function.

Called by adb_conn_free() to free driver private information.

AdbResultSetFreeFn _AdbDriver::free_rs
 

Driver private result set disposal function.

Called by adb_rs_free() to free driver private result set information.

AdbStatementFreeFn _AdbDriver::free_stmt
 

Driver private statement disposal function.

Called by adb_stmt_free() to free driver private statement information.

const char* _AdbDriver::name
 

Driver name.

Corresponds to the URI scheme which will select this driver.

AdbResultSetFn _AdbDriver::next
 

Driver result set advance function.

Your driver must be set up to require adb_rs_next() to be called before first fetch (i.e., a next call before a fetch should not skip the first row.

AdbConnectionFn _AdbDriver::open
 

Driver connection open function.

Called by adb_conn_open() to open the connection to the backend.

const char* _AdbDriver::param_prefix
 

Native SQL parameter prefix string.

Each named prefix in the expression passed to adb_stmt_prepare() will be replaced with a string beginning with this substring.

AdbStatementFn _AdbDriver::prepare
 

Driver statement prepare function.

Called by adb_stmt_prepare() to allow driver to prepare native statement and set up driver private statement information for the statement.

AdbQueryFn _AdbDriver::query
 

Driver statement query function.

Called by adb_stmt_query() with a pre-allocated AdbResultSet to allow the driver to execute the query and set up driver private result set information.


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