Loading...
Searching...
No Matches
apr_dbd.h File Reference

APR-UTIL DBD library. More...

`#include "apu.h"`
`#include "apr_pools.h"`
Include dependency graph for apr_dbd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Macros

#define | APR_DBD_TRANSACTION_COMMIT 0x00
#define | APR_DBD_TRANSACTION_ROLLBACK 0x01
#define | APR_DBD_TRANSACTION_IGNORE_ERRORS 0x02

## Typedefs

typedef struct apr_dbd_driver_t | apr_dbd_driver_t
typedef struct apr_dbd_t | apr_dbd_t
typedef struct apr_dbd_transaction_t | apr_dbd_transaction_t
typedef struct apr_dbd_results_t | apr_dbd_results_t
typedef struct apr_dbd_row_t | apr_dbd_row_t
typedef struct apr_dbd_prepared_t | apr_dbd_prepared_t

## Enumerations

enum

apr_dbd_type_e {
APR_DBD_TYPE_NONE , APR_DBD_TYPE_TINY , APR_DBD_TYPE_UTINY , APR_DBD_TYPE_SHORT ,
APR_DBD_TYPE_USHORT , APR_DBD_TYPE_INT , APR_DBD_TYPE_UINT , APR_DBD_TYPE_LONG ,
APR_DBD_TYPE_ULONG , APR_DBD_TYPE_LONGLONG , APR_DBD_TYPE_ULONGLONG , APR_DBD_TYPE_FLOAT ,
APR_DBD_TYPE_DOUBLE , APR_DBD_TYPE_STRING , APR_DBD_TYPE_TEXT , APR_DBD_TYPE_TIME ,
APR_DBD_TYPE_DATE , APR_DBD_TYPE_DATETIME , APR_DBD_TYPE_TIMESTAMP , APR_DBD_TYPE_ZTIMESTAMP ,
APR_DBD_TYPE_BLOB , APR_DBD_TYPE_CLOB , APR_DBD_TYPE_NULL
}

## Functions

apr_status_t | apr_dbd_init (apr_pool_t *pool)
apr_status_t | apr_dbd_get_driver (apr_pool_t *pool, const char *name, const apr_dbd_driver_t **driver)
apr_status_t | apr_dbd_open_ex (const apr_dbd_driver_t *driver, apr_pool_t *pool, const char *params, apr_dbd_t **handle, const char **error)
apr_status_t | apr_dbd_open (const apr_dbd_driver_t *driver, apr_pool_t *pool, const char *params, apr_dbd_t **handle)
apr_status_t | apr_dbd_close (const apr_dbd_driver_t *driver, apr_dbd_t *handle)
const char * | apr_dbd_name (const apr_dbd_driver_t *driver)
void * | apr_dbd_native_handle (const apr_dbd_driver_t *driver, apr_dbd_t *handle)
int | apr_dbd_check_conn (const apr_dbd_driver_t *driver, apr_pool_t *pool, apr_dbd_t *handle)
int | apr_dbd_set_dbname (const apr_dbd_driver_t *driver, apr_pool_t *pool, apr_dbd_t *handle, const char *name)
int | apr_dbd_transaction_start (const apr_dbd_driver_t *driver, apr_pool_t *pool, apr_dbd_t *handle, apr_dbd_transaction_t **trans)
int | apr_dbd_transaction_end (const apr_dbd_driver_t *driver, apr_pool_t *pool, apr_dbd_transaction_t *trans)
int | apr_dbd_transaction_mode_get (const apr_dbd_driver_t *driver, apr_dbd_transaction_t *trans)
int | apr_dbd_transaction_mode_set (const apr_dbd_driver_t *driver, apr_dbd_transaction_t *trans, int mode)
int | apr_dbd_query (const apr_dbd_driver_t *driver, apr_dbd_t *handle, int *nrows, const char *statement)
int | apr_dbd_select (const apr_dbd_driver_t *driver, apr_pool_t *pool, apr_dbd_t *handle, apr_dbd_results_t **res, const char *statement, int random)
int | apr_dbd_num_cols (const apr_dbd_driver_t *driver, apr_dbd_results_t *res)
int | apr_dbd_num_tuples (const apr_dbd_driver_t *driver, apr_dbd_results_t *res)
int | apr_dbd_get_row (const apr_dbd_driver_t *driver, apr_pool_t *pool, apr_dbd_results_t *res, apr_dbd_row_t **row, int rownum)
const char * | apr_dbd_get_entry (const apr_dbd_driver_t *driver, apr_dbd_row_t *row, int col)
const char * | apr_dbd_get_name (const apr_dbd_driver_t *driver, apr_dbd_results_t *res, int col)
const char * | apr_dbd_error (const apr_dbd_driver_t *driver, apr_dbd_t *handle, int errnum)
const char * | apr_dbd_escape (const apr_dbd_driver_t *driver, apr_pool_t *pool, const char *string, apr_dbd_t *handle)
int | apr_dbd_prepare (const apr_dbd_driver_t *driver, apr_pool_t *pool, apr_dbd_t *handle, const char *query, const char *label, apr_dbd_prepared_t **statement)
int | apr_dbd_pquery (const apr_dbd_driver_t *driver, apr_pool_t *pool, apr_dbd_t *handle, int *nrows, apr_dbd_prepared_t *statement, int nargs, const char **args)
int | apr_dbd_pselect (const apr_dbd_driver_t *driver, apr_pool_t *pool, apr_dbd_t *handle, apr_dbd_results_t **res, apr_dbd_prepared_t *statement, int random, int nargs, const char **args)
int | apr_dbd_pvquery (const apr_dbd_driver_t *driver, apr_pool_t *pool, apr_dbd_t *handle, int *nrows, apr_dbd_prepared_t *statement,...)
int | apr_dbd_pvselect (const apr_dbd_driver_t *driver, apr_pool_t *pool, apr_dbd_t *handle, apr_dbd_results_t **res, apr_dbd_prepared_t *statement, int random,...)
int | apr_dbd_pbquery (const apr_dbd_driver_t *driver, apr_pool_t *pool, apr_dbd_t *handle, int *nrows, apr_dbd_prepared_t *statement, const void **args)
int | apr_dbd_pbselect (const apr_dbd_driver_t *driver, apr_pool_t *pool, apr_dbd_t *handle, apr_dbd_results_t **res, apr_dbd_prepared_t *statement, int random, const void **args)
int | apr_dbd_pvbquery (const apr_dbd_driver_t *driver, apr_pool_t *pool, apr_dbd_t *handle, int *nrows, apr_dbd_prepared_t *statement,...)
int | apr_dbd_pvbselect (const apr_dbd_driver_t *driver, apr_pool_t *pool, apr_dbd_t *handle, apr_dbd_results_t **res, apr_dbd_prepared_t *statement, int random,...)
apr_status_t | apr_dbd_datum_get (const apr_dbd_driver_t *driver, apr_dbd_row_t *row, int col, apr_dbd_type_e type, void *data)

## Detailed Description

APR-UTIL DBD library.