Skip to content
Snippets Groups Projects
Commit 47e62560 authored by Dmitry Simonenko's avatar Dmitry Simonenko
Browse files

box-lua: box.select_limit function added

parent 7b3285f0
No related branches found
No related tags found
No related merge requests found
--
--
--
function box.select_limit(space, index, offset, limit, ...)
local key = {...}
return box.process(17,
box.pack('iiiiii'..string.rep('p', #key),
space,
index,
offset,
limit,
1, -- key count
#key, -- key cardinality
unpack(key)))
end
--
--
--
......@@ -105,6 +122,9 @@ function box.on_reload_configuration()
space_mt.select_range = function(space, ino, limit, ...)
return space.index[ino]:select_range(limit, ...)
end
space_mt.select_limit = function(space, ino, offset, limit, ...)
return box.select_limit(space.n, ino, offset, limit, ...)
end
space_mt.insert = function(space, ...) return box.insert(space.n, ...) end
space_mt.update = function(space, ...) return box.update(space.n, ...) end
space_mt.replace = function(space, ...) return box.replace(space.n, ...) end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment