void luaopen_tcp (lua_State * L);
void luaopen_html (lua_State * L);
void luaopen_fann (lua_State *L);
+void luaopen_sqlite3 (lua_State *L);
gint rspamd_lua_call_filter (const gchar *function, struct rspamd_task *task);
gint rspamd_lua_call_chain_filter (const gchar *function,
lua_load_sqlite3 (lua_State * L)
{
lua_newtable (L);
- luaL_register (L, NULL, sqlitelib_m);
+ luaL_register (L, NULL, sqlitelib_f);
return 1;
}
lua_pushstring (L, "rspamd{sqlite3}");
lua_rawset (L, -3);
- luaL_register (L, NULL, sqlitelib_f);
+ luaL_register (L, NULL, sqlitelib_m);
lua_pop (L, 1);
luaL_newmetatable (L, "rspamd{sqlite3_stmt}");