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

_AdbStatement Struct Reference

AirDBC statement internals. More...

#include <airdbc_drv.h>


Data Fields

AdbConnectionconn
 Connection on which this statement was prepared.
void * dstmt
 Driver private statement information.
char * sql
 Statement parameterized string in native parameter format.
uint32_t param_count
 Count of parameters in statement.
uint32_t param_maxlen
 Maximum length of a single parameter in param_buf.
char * param_buf
 Preallocated parameter space.
char ** param_str
 Array of parameter strings.
GHashTable * param_map
 AirDBC-maintained map of parameter names to position lists.

Detailed Description

AirDBC statement internals.

May be directly accessed by AirDBC drivers.


Field Documentation

void* _AdbStatement::dstmt
 

Driver private statement information.

Storage for this is managed bu the driver.

char* _AdbStatement::param_buf
 

Preallocated parameter space.

Managed by AirDBC. If a position in this buffer is valid (i.e., not NULL), AirDBC will point the appropriate param_str entry into this buffer at adb_stmt_bind() time.

uint32_t _AdbStatement::param_count
 

Count of parameters in statement.

Generated by adb_stmt_prepare() before calling the driver's prepare routine.

uint32_t _AdbStatement::param_maxlen
 

Maximum length of a single parameter in param_buf.

This is necessary because AirDBC preallocates parameter space due to the requirements of some RDBMS client libraries. Set by the user at adb_stmt_prepare() time. param_buf is param_maxlen * param_count characters long.

char** _AdbStatement::param_str
 

Array of parameter strings.

These are pointers into param_buf. If NULL for a parameter, a NULL value was bound for that parameter.

char* _AdbStatement::sql
 

Statement parameterized string in native parameter format.

Generated by adb_stmt_prepare() before calling the driver's prepare routine.


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