[PATCH 0/2] schema: expose space_mt and index_mt on table

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Fri Mar 23 16:07:07 MSK 2018


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)




More information about the Tarantool-patches mailing list