[Tarantool-patches] [PATCH 0/2] Introcude sequence.current

olegrok at tarantool.org olegrok at tarantool.org
Fri Mar 6 14:46:41 MSK 2020


From: Oleg Babin <babinoleg at mail.ru>

This patchset exposes function for getting
current value of sequence to lua.
The first patch adds a new type of internal error -
sequence error.
The second one introduces "current" function
for sequence object.

Issue: https://github.com/tarantool/tarantool/issues/4752
Branch: https://github.com/tarantool/tarantool/tree/olegrok/4752-sequence-current

@ChangeLog
 - Introduce "current" function for sequence object.
  It allows to get current value of a sequence.

Oleg Babin (2):
  box: introduce internal sequence error
  box: introduce "current" for sequence

 src/box/box.cc             | 14 ++++++++++++++
 src/box/box.h              | 12 ++++++++++++
 src/box/lua/schema.lua     |  4 ++++
 src/box/lua/sequence.c     | 12 ++++++++++++
 src/box/sequence.c         | 12 ++++++++----
 src/box/sequence.h         |  7 ++++---
 src/box/sql/vdbe.c         |  5 ++++-
 src/lib/core/diag.h        |  2 ++
 src/lib/core/exception.cc  | 25 +++++++++++++++++++++++++
 src/lib/core/exception.h   |  6 ++++++
 test/box/sequence.result   | 32 ++++++++++++++++++++++++++++++++
 test/box/sequence.test.lua | 12 ++++++++++++
 12 files changed, 135 insertions(+), 8 deletions(-)

-- 
2.23.0



More information about the Tarantool-patches mailing list