space_object:run_triggers()
-
object
space_object¶ -
space_object:run_triggers(true|false)¶ 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 withbox.space.space-name:run_triggers(true).Return: nil Example:
The following series of requests will associate an existing function named
Fwith an existing space namedT, associate the function a second time with the same space (so it will be called twice), disable all triggers ofT, and delete each trigger by replacing withnil.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)
-