mirror of
https://github.com/apache/httpd.git
synced 2025-08-05 16:55:50 +03:00
Add database features for mod_lua (apr_dbd + mod_dbd).
See documentation update for API and examples. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430225 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "util_script.h"
|
||||
#include "lua_apr.h"
|
||||
#include "scoreboard.h"
|
||||
#include "lua_dbd.h"
|
||||
|
||||
APLOG_USE_MODULE(lua);
|
||||
#define POST_MAX_VARS 500
|
||||
@@ -964,6 +965,8 @@ AP_LUA_DECLARE(void) ap_lua_load_request_lmodule(lua_State *L, apr_pool_t *p)
|
||||
makefun(&ap_auth_name, APL_REQ_FUNTYPE_STRING, p));
|
||||
apr_hash_set(dispatch, "sendfile", APR_HASH_KEY_STRING,
|
||||
makefun(&lua_ap_sendfile, APL_REQ_FUNTYPE_LUACFUN, p));
|
||||
apr_hash_set(dispatch, "dbacquire", APR_HASH_KEY_STRING,
|
||||
makefun(&lua_db_acquire, APL_REQ_FUNTYPE_LUACFUN, p));
|
||||
|
||||
|
||||
lua_pushlightuserdata(L, dispatch);
|
||||
|
Reference in New Issue
Block a user