CPANDB::Ticket - CPANDB class for the ticket table
TO BE COMPLETED
# Returns 'CPANDB'
my $namespace = CPANDB::Ticket->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 'ticket'
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::Ticket->load( $id );
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::Ticket->select;
# Get a subset of objects in scalar context
my $array_ref = CPANDB::Ticket->select(
'where id > ? order by id',