These are the methods for BDB::Recnum
Don't mix these methods with methods of BDB::Cursor
open(name = nil, subname = nil, flags = 0, mode = 0, options = {})create(name = nil, subname = nil, flags = 0, mode = 0, options = {})new(name = nil, subname = nil, flags = 0, mode = 0, options = {})open the database
BDB::Recnum.open(name, subname, flags, mode)
is equivalent to
BDB::Recno.open(name, subname, flags, mode,
"set_flags" => BDB::RENUMBER,
"set_array_base" => 0)remove(name, subname = nil)db_remove(name, subname = nil)unlink(name, subname = nil)Removes the database (or subdatabase) represented by the name and subname combination.
If no subdatabase is specified, the physical file represented by name is removed, incidentally removing all subdatabases that it contained.
upgrade(name)db_upgrade(name)All this methods has the same syntax than for the class Array
self[nth]self[start..end]self[start, length]self[nth] = valself[start..end] = valself[start, length] = valself + otherself * timesself - otherself & otherself | otherself << objself <=> otherclearcollect {|item| ..}collect! {|item| ..}concat(other)delete(val)delete_at(pos)delete_if {|x| ...}reject!{|x|...}each {|x| ...}each_index {|i| ...}empty?fill(val)fill(val, start[, length])fill(val, start..end)include?(val)index(val)indexes(index_1,..., index_n)indices(index_1,..., index_n)join([sep])lengthsizenitemspoppush(obj...)replace(other)reversereverse!reverse_each {|x| ...}rindex(val)shiftto_ato_aryunshift(obj)