CPANDB::Dependency - CPANDB class for the dependency table
TO BE COMPLETED
# Returns 'CPANDB'
my $namespace = CPANDB::Dependency->base;
Normally you will only need to work directly with a table class,
and only with one ORLite package.
However, if for some reason you need to work with multiple ORLite packages
at the same time without hardcoding the root namespace all the time, you
can determine the root namespace from an object or table class with the
# Returns 'dependency'
While you should not need the name of table for any simple operations,
from time to time you may need it programatically. If you do need it,
you can use the C
method to get the table name.
my $object = CPANDB::Dependency->load( $distribution );
If your table has single column primary key, a C method will be
generated in the class. If there is no primary key, the method is not
The C method provides a shortcut mechanism for fetching a single
object based on the value of the primary key. However it should only
be used for cases where your code trusts the record to already exists.
It returns a C object, or throws an exception if the
object does not exist.
# Get all objects in list context
my @list = CPANDB::Dependency->select;
# Get a subset of objects in scalar context
my $array_ref = CPANDB::Dependency->select(
'where distribution > ? order by distribution',