Add sqlite3 support to Lua scripts in redbean.

This commit is contained in:
Paul Kulchenko 2021-06-05 17:33:04 -07:00 committed by Justine Tunney
parent 067c14891f
commit b3a08d9286
3 changed files with 24 additions and 7 deletions

View file

@ -3646,8 +3646,11 @@ static const luaL_Reg kLuaFuncs[] = {
{"popcnt", LuaPopcnt}, //
};
extern int luaopen_lsqlite3(lua_State *L);
static const luaL_Reg kLuaLibs[] = {
{"re", LuaRe}, //
{"lsqlite3", luaopen_lsqlite3},
};
static void LuaSetArgv(lua_State *L) {