Harvest::Database - Database of all gathered objects
|
|
|
This database provides a wrapper using which one of the Harvest::Database
classes may be chosen. The constructor actually returns a reference to one
of these sub classes, meaning that this class only exists for a very short
period of time.
|
|
|
$data=new Harvest::Database($mode,$metaclass,$data);
|
Create a new database, with the following characteristics:
- $mode
-
The file mode of the database, can be either ro - read only, or rw -
read/write.
- $metaclass
-
The metadata class to use in the database. Should currently always be
Metadata::SOIF
- $data
-
A Harvest::Config structure, which can contain the following settings
File: The basename to use for all of the Database files (required) Type:
The type of DBM database to use (optional, defaults to DB_File) Class: The
class to use for the Database representation (required)
OR
A string containing the name of a previously created database.
|
.
|