This package is part of the OODatabase manpage.
Copyright © 1997 Curtis E. Dyreson. All rights reserved.
This class represents a table in a the OODatabase::Database manpage. A table is a dbm file. Each entry in the table is a the OODatabase::Tuple manpage. The class has been configured to use either BSD, GDBM, or BigDB files. You must edit this package to configure it.
Create a table with the give name (opens a dbm file). Second line.
Insert a the OODatabase::Tuple manpage into the table. Will replace an existing tuple so be careful.
Delete a tuple. The function returns true or false depending on whether or not the tuple found and deleted.
Retrieve a tuple with the given key from the table. This routine will retrieve a tuple from the table, or if the tuple is not found it will return 0. Use as follows.
# we want to retrieve the tuple for the key "hi"
$key = Id::fromString("hi");
# try to retrieve it
$r = $table->retrieveTuple($key);
# let's test if we found it
if ($r) {
# key was found in the table
else {
# key was not found
}
enumerate()Return a reference to the dbm file.
enumerateKeys()Return a list of the keys.
save()Close the DBM file