class BDB::Sequence

A sequence is created with the method BDB::Common#create_sequence or BDB::Common#open_sequence

Public Instance Methods

cachesize() click to toggle source

return the current cache size

# File sequence.rb, line 6
def cachesize
end
close() click to toggle source

close the sequence

# File sequence.rb, line 10
def close
end
db() click to toggle source

return the bdb file associated with the sequence

# File sequence.rb, line 14
def db
end
flags() click to toggle source

return the current flags

# File sequence.rb, line 18
def flags
end
get(delta = 1, flags = 0) click to toggle source

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

# File sequence.rb, line 25
def get(delta = 1, flags = 0)
end
key() click to toggle source

return the key associated with the sequence

# File sequence.rb, line 29
def key
end
range() click to toggle source

return the range of values in the sequence

# File sequence.rb, line 33
def range
end
remove(flags = 0) click to toggle source

remove the sequence

flags can have the value BDB::AUTO_COMMIT, BDB::TXN_NOSYNC

# File sequence.rb, line 39
def remove(flags = 0)
end
stat(flags = 0) click to toggle source

return statistics about the sequence

flags can have the value BDB::STAT_CLEAR

# File sequence.rb, line 45
def stat(flags = 0)
end