From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 10 Apr 2018 13:31:05 +0300 From: Vladimir Davydov Subject: Re: [tarantool-patches] Re: [PATCH v2 1/1] schema:frommap() to create table or tuple Message-ID: <20180410103105.6x6bk5y7xlrc4bdt@esperanza> References: <832dae8c-3736-1547-b0a4-75f1c8debc52@tarantool.org> <20180406154401.GA18456@atlas> <14e32326-7bca-5e49-68b7-3341ee7ce58b@tarantool.org> <1a5472f7-7183-1849-750c-6f2f7748918d@tarantool.org> <8b82482a-29bb-fa15-c017-ad21d995bcb2@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8b82482a-29bb-fa15-c017-ad21d995bcb2@tarantool.org> To: Kirill Shcherbatov Cc: tarantool-patches@freelists.org, "v.shpilevoy@tarantool.org" List-ID: 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 > 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