25 #include "apr_pools.h"
83 typedef struct apr_dbd_t apr_dbd_t;
84 typedef struct apr_dbd_transaction_t apr_dbd_transaction_t;
85 typedef struct apr_dbd_results_t apr_dbd_results_t;
86 typedef struct apr_dbd_row_t apr_dbd_row_t;
87 typedef struct apr_dbd_prepared_t apr_dbd_prepared_t;
93 APU_DECLARE(apr_status_t)
apr_dbd_init(apr_pool_t *pool);
144 apr_pool_t *pool, const
char *params,
159 apr_pool_t *pool, const
char *params,
208 apr_dbd_t *handle, const
char *name);
227 apr_dbd_transaction_t **trans);
240 apr_dbd_transaction_t *trans);
242 #define APR_DBD_TRANSACTION_COMMIT 0x00
243 #define APR_DBD_TRANSACTION_ROLLBACK 0x01
244 #define APR_DBD_TRANSACTION_IGNORE_ERRORS 0x02
252 APU_DECLARE(int) apr_dbd_transaction_mode_get(const apr_dbd_driver_t *driver,
253 apr_dbd_transaction_t *trans);
263 apr_dbd_transaction_t *trans,
275 int *nrows, const
char *statement);
290 apr_dbd_t *handle, apr_dbd_results_t **res,
291 const
char *statement,
int random);
300 apr_dbd_results_t *res);
310 apr_dbd_results_t *res);
323 apr_dbd_results_t *res, apr_dbd_row_t **row,
334 apr_dbd_row_t *row,
int col);
344 apr_dbd_results_t *res,
int col);
356 apr_dbd_t *handle,
int errnum);
367 apr_pool_t *pool, const
char *
string,
399 apr_dbd_t *handle, const
char *query,
401 apr_dbd_prepared_t **statement);
416 apr_dbd_t *handle,
int *nrows,
417 apr_dbd_prepared_t *statement,
int nargs,
433 apr_dbd_t *handle, apr_dbd_results_t **res,
434 apr_dbd_prepared_t *statement,
int random,
435 int nargs, const
char **args);
449 apr_dbd_t *handle,
int *nrows,
450 apr_dbd_prepared_t *statement, ...);
464 apr_pool_t *pool, apr_dbd_t *handle,
465 apr_dbd_results_t **res,
466 apr_dbd_prepared_t *statement,
480 apr_pool_t *pool, apr_dbd_t *handle,
481 int *nrows, apr_dbd_prepared_t *statement,
497 apr_dbd_t *handle, apr_dbd_results_t **res,
498 apr_dbd_prepared_t *statement,
int random,
513 apr_dbd_t *handle,
int *nrows,
514 apr_dbd_prepared_t *statement, ...);
528 apr_pool_t *pool, apr_dbd_t *handle,
529 apr_dbd_results_t **res,
530 apr_dbd_prepared_t *statement,
543 apr_dbd_row_t *row,
int col,
const char * apr_dbd_error(const apr_dbd_driver_t *driver, apr_dbd_t *handle, int errnum)
int apr_dbd_set_dbname(const apr_dbd_driver_t *driver, apr_pool_t *pool, apr_dbd_t *handle, const char *name)
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)
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)
void * apr_dbd_native_handle(const apr_dbd_driver_t *driver, apr_dbd_t *handle)
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_query(const apr_dbd_driver_t *driver, apr_dbd_t *handle, int *nrows, const char *statement)
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_num_cols(const apr_dbd_driver_t *driver, apr_dbd_results_t *res)
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_get_driver(apr_pool_t *pool, const char *name, const apr_dbd_driver_t **driver)
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_transaction_mode_set(const apr_dbd_driver_t *driver, apr_dbd_transaction_t *trans, int mode)
const char * apr_dbd_get_entry(const apr_dbd_driver_t *driver, apr_dbd_row_t *row, int col)
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_init(apr_pool_t *pool)
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)
apr_dbd_type_e
Definition: apr_dbd.h:55
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)
const char * apr_dbd_name(const apr_dbd_driver_t *driver)
int apr_dbd_num_tuples(const apr_dbd_driver_t *driver, apr_dbd_results_t *res)
const char * apr_dbd_escape(const apr_dbd_driver_t *driver, apr_pool_t *pool, const char *string, apr_dbd_t *handle)
Definition: apr_dbd_internal.h:43
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_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)
apr_status_t apr_dbd_open(const apr_dbd_driver_t *driver, apr_pool_t *pool, const char *params, apr_dbd_t **handle)
const char * apr_dbd_get_name(const apr_dbd_driver_t *driver, apr_dbd_results_t *res, int col)
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_check_conn(const apr_dbd_driver_t *driver, apr_pool_t *pool, apr_dbd_t *handle)
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_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,...)
apr_status_t apr_dbd_close(const apr_dbd_driver_t *driver, apr_dbd_t *handle)