From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 33893241B5 for ; Tue, 8 May 2018 12:48:18 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jXDiydyG3DNx for ; Tue, 8 May 2018 12:48:18 -0400 (EDT) Received: from smtp60.i.mail.ru (smtp60.i.mail.ru [217.69.128.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 6BC0F227A9 for ; Tue, 8 May 2018 12:48:17 -0400 (EDT) Date: Tue, 8 May 2018 19:48:14 +0300 From: Konstantin Osipov Subject: [tarantool-patches] Re: [PATCH v2 3/3] schema: expose space_mt and index_mt on box.schema table Message-ID: <20180508164814.GC20248@atlas> References: <20180402112843.k5szaedwomi4gtl3@esperanza> <8053011f0e2036fdb811dd7ad6097ccc150b76d0.1522774214.git.v.shpilevoy@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: Vladislav Shpilevoy Cc: tarantool-patches@freelists.org * Vladislav Shpilevoy [18/05/05 23:23]: This branch breaks app/luafun.test.lua > Users requested to be able to extend spaces individually. The > patch was reworked to allow this. > > On 03/04/2018 19:50, Vladislav Shpilevoy wrote: > >This commit allows userland to extend the space and index > >metatables with their own functions or even metamethods. Reducing > >barriers for this kind of experimentation is vital for user > >contribution toward the improvement of Tarantool's API. > > > >There are 4 metatables available for extending: > >box.schema.space_mt - metatable of all spaces; > >box.schema.index_mt - base metatable of all indexes - replicated > > into the vinyl and memtx. See below how. > >box.schema.vinyl_index_mt - metatable of all vinyl indexes; > >box.schema.memtx_index_mt - metatable of all memtx indexes. > > > >Closes #3204 -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov