67 if (db && db->
alive) {
101 if (db && db->
alive) {
133 if (db && db->
alive) {
207 if (db && db->
alive) {
253 for (x = 0; x <
res->cols; x++) {
280 for (x = 0; x <
res->cols; x++) {
321 if (db && db->
alive) {
403 "Error in executing prepared statement: Expected %d arguments, got %d.",
408 for (x = 0; x <
have; x++) {
413 if (
st->db &&
st->db->alive) {
421 &results,
st->statement, 0,
have, vars);
462 "Database connection seems to be closed, please reacquire it.");
494 "Error in executing prepared statement: Expected %d arguments, got %d.",
499 for (x = 0; x <
have; x++) {
504 if (
st->db &&
st->db->alive) {
533 "Database connection seems to be closed, please reacquire it.");
593 st->variables = need;
639 "Could not find any prepared statement called %s!",
tag);
729 const char *arguments;
730 const char *
error = 0;
761 "mod_dbd doesn't seem to have been loaded.");
765 "Could not acquire connection from mod_dbd. If your database is running, this may indicate a permission problem.");
808 "No database connection string was specified.");
816 "driver for %s not available",
type);
820 "can't find driver for %s",
type);
824 "driver for %s is invalid or corrupted",
829 "mod_lua not compatible with APR in get_driver");
#define APLOG_USE_MODULE(foo)
#define APR_STATUS_IS_ENOTIMPL(s)
#define APR_STATUS_IS_EDSOOPEN(s)
#define APR_STATUS_IS_ESYMNOTFOUND(s)
apr_pool_t const char apr_dbd_t const char ** error
struct apr_dbd_prepared_t apr_dbd_prepared_t
apr_pool_t apr_dbd_t apr_dbd_results_t ** res
apr_dbd_t int const char * statement
struct apr_dbd_results_t apr_dbd_results_t
apr_pool_t apr_dbd_results_t apr_dbd_row_t ** row
struct apr_dbd_row_t apr_dbd_row_t
#define APR_RETRIEVE_OPTIONAL_FN(name)
#define APR_OPTIONAL_FN_TYPE(name)
ap_dbd_t * ap_dbd_open(apr_pool_t *pool, server_rec *s)
void ap_dbd_close(server_rec *s, ap_dbd_t *rec)
#define ap_strchr_c(s, c)
const char int apr_pool_t * pool
#define APR_HASH_KEY_STRING
#define apr_pool_create(newpool, parent)
#define apr_pcalloc(p, size)
apr_int32_t apr_int32_t apr_int32_t err
static lua_db_result_set * lua_get_result_set(lua_State *L)
int lua_db_select(lua_State *L)
int lua_db_active(lua_State *L)
int lua_db_prepared(lua_State *L)
static apr_OFN_ap_dbd_close_t * lua_ap_dbd_close
int lua_db_prepared_select(lua_State *L)
static lua_db_handle * lua_get_db_handle(lua_State *L)
int lua_db_query(lua_State *L)
int lua_db_get_row(lua_State *L)
int lua_db_escape(lua_State *L)
int lua_db_acquire(lua_State *L)
int lua_db_prepared_query(lua_State *L)
int lua_db_close(lua_State *L)
static request_rec * ap_lua_check_request_rec(lua_State *L, int index)
static lua_db_handle * lua_push_db_handle(lua_State *L, request_rec *r, int type, apr_pool_t *pool)
int lua_db_prepare(lua_State *L)
int lua_db_gc(lua_State *L)
static apr_OFN_ap_dbd_open_t * lua_ap_dbd_open
#define LUA_DBTYPE_MOD_DBD
#define LUA_DBTYPE_APR_DBD
const apr_dbd_driver_t * driver
const apr_dbd_driver_t * driver
A structure that represents the current request.