box: introduce after in pairs
The patch introduces pagination to pairs: one can create iterator which will start after specific tuple or position, described by option after. Tuple (both cdata and array) and position (obtained by index:tuple_pos or fetch_pos option of select) can be passed as option after. NO_CHANGELOG=next commit NO_DOC=next commit
Showing
- extra/exports 1 addition, 0 deletionsextra/exports
- src/box/index.cc 53 additions, 4 deletionssrc/box/index.cc
- src/box/index.h 21 additions, 0 deletionssrc/box/index.h
- src/box/lua/index.c 21 additions, 8 deletionssrc/box/lua/index.c
- src/box/lua/misc.cc 1 addition, 5 deletionssrc/box/lua/misc.cc
- src/box/lua/misc.h 8 additions, 0 deletionssrc/box/lua/misc.h
- src/box/lua/schema.lua 54 additions, 41 deletionssrc/box/lua/schema.lua
- src/box/memtx_engine.h 1 addition, 1 deletionsrc/box/memtx_engine.h
- src/box/tuple.c 12 additions, 0 deletionssrc/box/tuple.c
- src/box/tuple.h 14 additions, 0 deletionssrc/box/tuple.h
- test/engine-luatest/pagination_test.lua 78 additions, 0 deletionstest/engine-luatest/pagination_test.lua
Loading
Please register or sign in to comment