box.space._schema
-
box.space.
_schema
¶ _schema
– это системный спейс.Этот спейс включает в себя следующие кортежи:
version
: version information for this Tarantool instance.cluster
: the instance’s replica set ID.max_id
(deprecated since 2.11.1): the maximal space ID. Use the box.space._space.index[0]:max() function instead.once...
: tuples that correspond to specific box.once() blocks from the instance’s initialization file. The first field in these tuples contains thekey
value from the correspondingbox.once()
block prefixed with „once“ (e.g.oncehello
), so you can easily find a tuple that corresponds to a specificbox.once()
block.
Пример:
In the example, the
_schema
space contains twobox.once
objects –oncebye
andoncehello
.tarantool> box.space._schema:select{} --- - - ['cluster', 'b4e15788-d962-4442-892e-d6c1dd5d13f2'] - ['max_id', 512] - ['oncebye'] - ['oncehello'] - ['version', 1, 7, 2]