Add lsqlite3 - an SQLite 3 database binding for Lua 5 (taken from http://lua.sqlite.org/index.cgi/index)

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2024-06-25 10:36:46 +02:00
parent 75b5e5fab9
commit de2750dfd6
4 changed files with 2464 additions and 0 deletions
+2
View File
@@ -15,9 +15,11 @@
set(sqlite3_sources
shell.c
sqlite3.c
lsqlite3.c
)
add_library(sqlite3 OBJECT ${sqlite3_sources})
target_include_directories(sqlite3 PRIVATE ${PROJECT_SOURCE_DIR}/src/lua)
target_compile_options(sqlite3 PRIVATE -Wno-implicit-fallthrough -Wno-cast-function-type -Wno-sign-compare -Wno-implicit-function-declaration -Wno-int-conversion)
if (CMAKE_C_COMPILER_ID STREQUAL "Clang")
File diff suppressed because it is too large Load Diff
+1
View File
@@ -52,6 +52,7 @@ static const luaL_Reg loadedlibs[] = {
{LUA_DBLIBNAME, luaopen_debug},
/****** Pi-hole modification ******/
{LUA_PIHOLELIBNAME, luaopen_pihole},
{LUA_LSQLITE3LIBNAME, luaopen_lsqlite3},
/**********************************/
{NULL, NULL}
};
+2
View File
@@ -47,6 +47,8 @@ LUAMOD_API int (luaopen_package) (lua_State *L);
/************ Pi-hole modification *************/
#define LUA_PIHOLELIBNAME "pihole"
LUAMOD_API int (luaopen_pihole) (lua_State *L);
#define LUA_LSQLITE3LIBNAME "lsqlite3"
LUAMOD_API int (luaopen_lsqlite3) (lua_State *L);
/***********************************************/
/* open all previous libraries */