[tarantool-patches] Re: [PATCH v2 3/3] schema: expose space_mt and index_mt on box.schema table

Konstantin Osipov kostja at tarantool.org
Tue May 8 19:48:14 MSK 2018


* Vladislav Shpilevoy <v.shpilevoy at tarantool.org> [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




More information about the Tarantool-patches mailing list