Updated at July 17, 2026 02:08 PM
space_object:run_triggers()
space_object
At the time that a trigger is defined, it is automatically
enabled - that is, it will be executed.
Replace triggers can be disabled with
box.space.{space-name}:run_triggers(false) and re-enabled with
box.space.{space-name}:run_triggers(true).
Returns
nil
Example:
The following series of requests will associate an existing function
named [F]{.title-ref} with an existing space named [T]{.title-ref},
associate the function a second time with the same space (so it will be
called twice), disable all triggers of [T]{.title-ref}, and delete each
trigger by replacing with nil.
tarantool> box.space.T:on_replace(F)tarantool> box.space.T:on_replace(F)tarantool> box.space.T:run_triggers(false)tarantool> box.space.T:on_replace(nil, F)tarantool> box.space.T:on_replace(nil, F)