[tarantool-patches] [PATCH v2 0/2] lua: add key_def lua module
Kirill Shcherbatov
kshcherbatov at tarantool.org
Wed Mar 27 17:29:26 MSK 2019
Introduced new LUA module key_def.
There are several reasons to add this module:
* Factor out key parts parsing code from the tuples merger (#3276).
* Support comparing a tuple with a key / a tuple, support merging
key_defs from Lua (#3398).
* Support extracting a key from a tuple (#4025).
Changes in version 2:
- ability to pass tables, not only tuples as arguments
- perform types and nullablility validations
- fixed errors
http://github.com/tarantool/tarantool/tree/kshch/gh-4025-lua-key-kef-methods
https://github.com/tarantool/tarantool/issues/4025
Alexander Turenko (1):
lua: add luaT_tuple_new()
Kirill Shcherbatov (1):
lua: add key_def lua module
src/CMakeLists.txt | 1 +
src/box/CMakeLists.txt | 2 +
src/box/lua/init.c | 5 +
src/box/lua/key_def.c | 441 ++++++++++++++++++++++++++++++++
src/box/lua/key_def.h | 63 +++++
src/box/lua/key_def.lua | 19 ++
src/box/lua/space.cc | 35 +--
src/box/lua/tuple.c | 58 +++--
src/box/lua/tuple.h | 15 +-
src/box/tuple.h | 33 +++
test/box-tap/key_def.test.lua | 340 ++++++++++++++++++++++++
test/unit/CMakeLists.txt | 4 +
test/unit/luaT_tuple_new.c | 178 +++++++++++++
test/unit/luaT_tuple_new.result | 22 ++
14 files changed, 1167 insertions(+), 49 deletions(-)
create mode 100644 src/box/lua/key_def.c
create mode 100644 src/box/lua/key_def.h
create mode 100644 src/box/lua/key_def.lua
create mode 100755 test/box-tap/key_def.test.lua
create mode 100644 test/unit/luaT_tuple_new.c
create mode 100644 test/unit/luaT_tuple_new.result
--
2.21.0
More information about the Tarantool-patches
mailing list