2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
26 #define LUA_DBTYPE_APR_DBD 0
27 #define LUA_DBTYPE_MOD_DBD 1
31 const apr_dbd_driver_t *driver;
40 const apr_dbd_driver_t *driver;
43 apr_dbd_results_t *results;
48 apr_dbd_prepared_t *statement;
51 } lua_db_prepared_statement;
54 AP_LUA_DECLARE(int) lua_db_close(lua_State *L);
55 AP_LUA_DECLARE(int) lua_db_gc(lua_State *L);
56 AP_LUA_DECLARE(int) lua_db_active(lua_State *L);
57 AP_LUA_DECLARE(int) lua_db_query(lua_State *L);
58 AP_LUA_DECLARE(int) lua_db_escape(lua_State *L);
59 AP_LUA_DECLARE(int) lua_db_select(lua_State *L);
60 AP_LUA_DECLARE(int) lua_db_prepare(lua_State* L);
61 AP_LUA_DECLARE(int) lua_db_prepared(lua_State* L);
62 AP_LUA_DECLARE(int) lua_db_acquire(lua_State* L);
65 #endif /* !_LUA_DBD_H_ */