Lua: improve the way Lua procedures return results.
Instead of using "print" and fiber->iov to return results to the client, change the Lua procedures implementation to simply send to the client all return values of a procedure. A procedure, in turn, can return tuples, integers (and, in future, strings, Lua tables or whatever). This allows nicely to call one procedure from another, and use its results in Lua, and call the very same procedure from the binary protocol, and still be able to process its results on the client.
Showing
- core/tarantool_lua.m 46 additions, 5 deletionscore/tarantool_lua.m
- include/tarantool.h 0 additions, 8 deletionsinclude/tarantool.h
- mod/box/box.h 1 addition, 0 deletionsmod/box/box.h
- mod/box/box.m 0 additions, 31 deletionsmod/box/box.m
- mod/box/box_lua.m 202 additions, 9 deletionsmod/box/box_lua.m
- mod/box/tuple.m 1 addition, 1 deletionmod/box/tuple.m
- test/box/lua.result 11 additions, 11 deletionstest/box/lua.result
- test/lib/sql_ast.py 1 addition, 0 deletionstest/lib/sql_ast.py
Loading
Please register or sign in to comment