Skip to content

Instantly share code, notes, and snippets.

View koshoi's full-sized avatar
🤔

Oleg Koshovetc koshoi

🤔
View GitHub Profile
_G.ls = setmetatable({}, {
__serialize = function()
local res = {}
for _, sp_info in box.space._space:pairs(512, { iterator = "GE" }) do
local sp = box.space[sp_info.name]
local info = {}
info.name = tostring(sp.name)
info.engine = tostring(sp.engine)
info.len = tostring(sp:len())