[tarantool-patches] Re: [PATCH v2 1/1] schema:frommap() to create table or tuple

Vladimir Davydov vdavydov.dev at gmail.com
Tue Apr 10 13:31:05 MSK 2018


On Mon, Apr 09, 2018 at 08:23:21PM +0300, Kirill Shcherbatov wrote:
> From 0cb37cac97056398c39f723aef81053cc4550485 Mon Sep 17 00:00:00 2001
> From: Kirill Shcherbatov <kshcherbatov at tarantool.org>
> Date: Wed, 4 Apr 2018 19:32:40 +0300
> Subject: [PATCH] schema:frommap() to create table or tuple
> 
> This feature is designed to build tuple or table object by map.
> Tuple output is default. If you wish to make a table, specify table = true option.
> subscriber:frommap({ddd = 1, aaa = 2, ccc = 3, bbb = 4}, {table = true})
> 
> Closes #3282
> ---
>  src/box/lua/schema.lua  |  1 +
>  src/box/lua/space.cc    | 76 +++++++++++++++++++++++++++++++++++++++++++++-
>  src/box/lua/tuple.c     |  2 +-
>  src/box/lua/tuple.h     |  3 ++
>  test/box/tuple.result   | 81 +++++++++++++++++++++++++++++++++++++++++++++++++
>  test/box/tuple.test.lua | 25 +++++++++++++++
>  6 files changed, 186 insertions(+), 2 deletions(-)

ACK



More information about the Tarantool-patches mailing list