box: use field names in tuple constraint function
The previous commit adds tuple constraint lua functions that check format of entire tuple. The problem was that in those functions tuple could be accessed only by field indexes. Add an ability to use field names too. NO_DOC=see later commits NO_CHANGELOG=see later commits
Showing
- src/box/lua/misc.cc 82 additions, 0 deletionssrc/box/lua/misc.cc
- src/box/lua/schema.lua 2 additions, 1 deletionsrc/box/lua/schema.lua
- src/box/port.c 16 additions, 0 deletionssrc/box/port.c
- src/box/port.h 15 additions, 0 deletionssrc/box/port.h
- src/box/tuple_constraint.h 1 addition, 0 deletionssrc/box/tuple_constraint.h
- src/box/tuple_constraint_func.c 5 additions, 1 deletionsrc/box/tuple_constraint_func.c
- src/box/tuple_format.c 1 addition, 1 deletionsrc/box/tuple_format.c
- src/lib/core/port.h 1 addition, 1 deletionsrc/lib/core/port.h
- test/engine-luatest/gh_6436_tuple_constraint_test.lua 5 additions, 1 deletiontest/engine-luatest/gh_6436_tuple_constraint_test.lua
Loading
Please register or sign in to comment