box: expose sort_order to lua key_def API
* Add ability to specify sort_order when creating a key def via lua key_def API. * Update key_def.totable to also emit the sort order. NO_CHANGELOG=see the previous commit @TarantoolBot document Title: key_def API update - added support for key part sort order. The part sort order is specified the same way as in index creation: ``` key_def.new({{1, 'unsigned', sort_order = 'desc'}}) ``` The sort order is now taken into account in comparison functions. Affected documentation: [link](https://www.tarantool.io/en/doc/latest/reference/reference_lua/key_def/)
Showing
- src/box/lua/key_def.c 22 additions, 0 deletionssrc/box/lua/key_def.c
- test/box-luatest/gh_7356_index_parts_methods_test.lua 3 additions, 3 deletionstest/box-luatest/gh_7356_index_parts_methods_test.lua
- test/box-tap/key_def.test.lua 18 additions, 5 deletionstest/box-tap/key_def.test.lua
- test/box/alter.result 12 additions, 8 deletionstest/box/alter.result
- test/box/errinj.result 3 additions, 2 deletionstest/box/errinj.result
- test/box/gh-5998-one-tx-for-ddl.result 3 additions, 2 deletionstest/box/gh-5998-one-tx-for-ddl.result
- test/box/lua.result 6 additions, 4 deletionstest/box/lua.result
- test/box/misc.result 12 additions, 6 deletionstest/box/misc.result
- test/box/tx_man.result 3 additions, 2 deletionstest/box/tx_man.result
- test/engine-luatest/gh_5529_sort_order_test.lua 95 additions, 0 deletionstest/engine-luatest/gh_5529_sort_order_test.lua
- test/engine/ddl.result 51 additions, 34 deletionstest/engine/ddl.result
- test/engine/null.result 49 additions, 30 deletionstest/engine/null.result
- test/sql/types.result 24 additions, 16 deletionstest/sql/types.result
- test/vinyl/ddl.result 3 additions, 2 deletionstest/vinyl/ddl.result
Loading
Please register or sign in to comment