Branch: refs/heads/master
  Home:   https://github.com/mailru/tarantool

  Commit: 58f5c07e3015d82af1f7d6a73e6238fe9d5a0fc0
      
https://github.com/mailru/tarantool/commit/58f5c07e3015d82af1f7d6a73e6238fe9d5a0fc0
  Author: Konstantin Osipov <[email protected]>
  Date:   2011-08-25 (Thu, 25 Aug 2011)

  Changed paths:
    M core/tarantool_lua.m
  M doc/user/language-reference.xml
  M include/tarantool.h
  M mod/box/CMakeLists.txt
  M mod/box/box.h
  A mod/box/box.lua
  M mod/box/box.m
  M mod/box/box_lua.m
  M mod/box/memcached.m
  M test/box/configuration.result
  M test/box/lua.result
  M test/box/lua.test
  M test/box/show.result
  M test/box/stat.result
  A test/box_big/lua.result
  A test/box_big/lua.test
  M test/box_big/tarantool.cfg
  M test/box_memcached/multiversioning.result
  M test/lib/admin_connection.py
  M test/lib/sql.g
  M test/lib/sql.py
  M test/lib/sql_ast.py

  Log Message:
  -----------
  Lua: mature the implementation CALL command in the binary protocol.

Fix a bug when Lua transaction was rolled back
twice when Lua procedure was invoked from CALL.

Change the way arguments to and from CALL
statement in the binary protocol are passed:
we used to pass everything from the wire as a single
binary blob. Now every field of the received
tuple is passed in as a separate string argument.

Everything passed back from Lua is converted to a tuple. This
makes CALL response similar to one of SELECT.

Improve box.pack() to convert its argument to integer when
necessary. Add an argument count check to box.pack().
Additionally, now box.pack() can be used to pack
operations of 'UPDATE'.

Use tarantool_lua_tostring() in iov_add_ret():
this function is now used to convert return values to
the binary protocol in box_lua.m. This is necessary
if we try to send boolean or nil over the
binary wire, since Lua C API lua_tostring()
does not convert them.

Add box.lua - a system Lua script
compiled into Tarantool and containing a bunch
of Lua code preloaded at startup.

Populate box.lua with implementation
of basic Lua functions:
box.select(), box.update(), box.replace(),
box.insert() (currently an alias for box.replace()),
box.delete(). They are all wrappers around box.process().

Move box_lua_init() to the beginning of mod_init(),
since Lua in future can be used in recover().

Fix a wrong assumption about the contents
of Lua stack in iov_add_multret().

Update sql.g Python SQL grammar to allow
an empty argumeent list for procedure in CALL
statement.

Add initial documentation on Lua procedures.

Add more Lua tests.

Unrelated: rename INSERT to REPLACE, and UPDATE_FIELDS to
UPDATE.
Remove SELECT_LIMIT, which is not used any more.



_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to