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

Function db_table

lua/sp.c:3837–3847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3835}
3836
3837static int db_table(lua_State *lua)
3838{
3839 luaL_checkudata(lua, 1, dbtypes.db);
3840 lua_remove(lua, 1);
3841
3842 switch (lua_gettop(lua)) {
3843 case 1: return comdb2_table(lua);
3844 case 2: return new_temp_table(lua);
3845 default: return luabb_error(lua, NULL, "bad arguments to 'table'");
3846 }
3847}
3848
3849static int db_cast(Lua L)
3850{

Callers

nothing calls this directly

Calls 6

luaL_checkudataFunction · 0.85
lua_removeFunction · 0.85
lua_gettopFunction · 0.85
comdb2_tableFunction · 0.85
new_temp_tableFunction · 0.85
luabb_errorFunction · 0.85

Tested by

no test coverage detected