-
Notifications
You must be signed in to change notification settings - Fork 3
/
luasql.h
33 lines (24 loc) · 914 Bytes
/
luasql.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
** $Id: luasql.h 2282 2011-01-15 03:35:20Z wini $
** See Copyright Notice in license.html
*/
#ifndef _LUASQL_
#define _LUASQL_
#ifndef LUASQL_API
#define LUASQL_API
#endif
#define LUASQL_PREFIX "LuaSQL: "
#define LUASQL_TABLENAME "luasql"
#define LUASQL_ENVIRONMENT "Each driver must have an environment metatable"
#define LUASQL_CONNECTION "Each driver must have a connection metatable"
#define LUASQL_CURSOR "Each driver must have a cursor metatable"
/* Barracuda BA_ENV_IX is on upvalue position 1 */
#define SQL_ENV_IX lua_upvalueindex(2)
typedef struct {
short closed;
} pseudo_data;
LUASQL_API int luasql_faildirect (lua_State *L, const char *err);
LUASQL_API int luasql_createmeta (lua_State *L, const char *name, const luaL_Reg *methods);
LUASQL_API void luasql_setmeta (lua_State *L, const char *name);
LUASQL_API void luasql_set_info (lua_State *L);
#endif