Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH 0/2] Introcude sequence.current
@ 2020-03-06 11:46 olegrok
  2020-03-06 11:46 ` [Tarantool-patches] [PATCH 1/2] box: introduce internal sequence error olegrok
  2020-03-06 11:46 ` [Tarantool-patches] [PATCH 2/2] box: introduce "current" for sequence olegrok
  0 siblings, 2 replies; 6+ messages in thread
From: olegrok @ 2020-03-06 11:46 UTC (permalink / raw)
  To: tarantool-patches, v.shpilevoy, korablev; +Cc: Oleg Babin

From: Oleg Babin <babinoleg@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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-03-06 16:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-06 11:46 [Tarantool-patches] [PATCH 0/2] Introcude sequence.current olegrok
2020-03-06 11:46 ` [Tarantool-patches] [PATCH 1/2] box: introduce internal sequence error olegrok
2020-03-06 12:55   ` Nikita Pettik
2020-03-06 16:37     ` Oleg Babin
2020-03-06 11:46 ` [Tarantool-patches] [PATCH 2/2] box: introduce "current" for sequence olegrok
2020-03-06 13:00   ` Nikita Pettik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox