class BDB::Sequence
A sequence is created with the method BDB::Common#create_sequence or BDB::Common#open_sequence
Public Instance Methods
Source
# File sequence.rb, line 14 def db end
return the bdb file associated with the sequence
Source
# File sequence.rb, line 25 def get(delta = 1, flags = 0) end
return the next available element in the sequence and changes the sequence value by delta
flags can have the value BDB::AUTO_COMMIT, BDB::TXN_NOSYNC
Source
# File sequence.rb, line 33 def range end
return the range of values in the sequence
Source
# File sequence.rb, line 39 def remove(flags = 0) end
remove the sequence
flags can have the value BDB::AUTO_COMMIT, BDB::TXN_NOSYNC
Source
# File sequence.rb, line 45 def stat(flags = 0) end
return statistics about the sequence
flags can have the value BDB::STAT_CLEAR