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] = val
self[start..end] = val
self[start, length] = val
self + other
self * times
self - other
self & other
self | other
self << obj
self <=> other
clear
collect {|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])
length
size
nitems
pop
push(obj...)
replace(other)
reverse
reverse!
reverse_each {|x| ...}
rindex(val)
shift
to_a
to_ary
unshift(obj)