Top.Mail.Ru
sequence_object:reset() | Tarantool
 
Reference / Built-in modules reference / Module box / Sequences / sequence_object:reset()
Reference / Built-in modules reference / Module box / Sequences / sequence_object:reset()

sequence_object:reset()

sequence_object:reset()

object sequence_object
sequence_object:reset()

Set the sequence back to its original state. The effect is that a subsequent next() will return the start value. This function requires a ‘write’ privilege on the sequence.