From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Vladislav Shpilevoy Subject: [PATCH 0/2] schema: expose space_mt and index_mt on table Date: Fri, 23 Mar 2018 16:07:07 +0300 Message-Id: To: tarantool-patches@freelists.org Cc: vdavydov.dev@gmail.com, Vladislav Shpilevoy List-ID: Branch: http://github.com/tarantool/tarantool/tree/pr-3204-expose-space-index-mt Issue: https://github.com/tarantool/tarantool/issues/3204 Some of users want to extend space and index methods with their own, but do not want to do it for each space, because a metatable are created individually for a space. Move these metatables to box.schema, and lookup into them, when a method was not found in an original metatable. Vladislav Shpilevoy (1): schema: review fixes for box.schema.space/index metatables aleclarson (1): schema: expose space_mt and index_mt on `box.schema` table src/box/lua/schema.lua | 631 ++++++++++++++++++++-------------------- test/box-tap/schema_mt.test.lua | 79 +++++ 2 files changed, 391 insertions(+), 319 deletions(-) create mode 100755 test/box-tap/schema_mt.test.lua -- 2.14.3 (Apple Git-98)