Sherzod Ruzmetov > Class-PObject > Class::PObject::Driver::DBM

Download:
Class-PObject-2.17.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  0
View/Report Bugs
Module Version: 2.00   Source  

NAME ^

Class::PObject::Driver::DBM - Base class for DBM-related pobject drivers

SYNOPSIS ^

    use Class::PObject::Driver::DBM;
    @ISA = ('Class::PObject::Driver::DBM');

    sub dbh {
        my ($self, $pobject_name, $properties) = @_;
        ...
    }

ABSTRACT ^

    Class::PObject::Driver::DBM is a base class for all the DBM-related
    pobject drivers. Class::PObject::Driver::DBM is a direct subclass of
    Class::PObject::Driver.

DESCRIPTION ^

Class::PObject::Driver::DBM is a direct subclass of Class::PObject::Driver, and provides all the necessary methods common for DBM-related disk access.

METHODS ^

Refer to Class::PObject::Driver for the details of all the driver-specific methods. Class::PObject::Driver::DBM overrides save(), load() and remove() methods with the versions relevant to DBM-related disk access.

NOTES ^

Currently the only record index is the id column. By introducing configurable indexes, object selections (through load() method) can be improved tremendously. Syntax similar to the following may suffice:

    pobject Article => {
        columns         => ['id', 'title', 'author', 'content'],
        indexes         => ['title', 'author'],
        driver          => 'db_file',
        datasource      => './data'
    }

This issue is to be addressed in subsequent releases.

SEE ALSO ^

Class::PObject::Driver, Class::PObject::Driver::DB_File Class::PObject::Driver::DBI

COPYRIGHT AND LICENSE ^

For author and copyright information refer to Class::PObject's online manual.

syntax highlighting: