MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / init_dbstmt_funcs

Function init_dbstmt_funcs

lua/sp.c:5194–5201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5192}
5193
5194static void init_dbstmt_funcs(Lua L)
5195{
5196 luaL_newmetatable(L, dbtypes.dbstmt);
5197 lua_pushvalue(L, -1);
5198 lua_setfield(L, -2, "__index");
5199 luaL_openlib(L, NULL, dbstmt_funcs, 0);
5200 lua_pop(L, 1);
5201}
5202
5203static const struct luaL_Reg dbthread_funcs[] = {
5204 {"join", dbthread_join},

Callers 1

create_sp_intFunction · 0.85

Calls 3

luaL_newmetatableFunction · 0.85
lua_pushvalueFunction · 0.85
lua_setfieldFunction · 0.85

Tested by

no test coverage detected