Alzabo::Schema - Schema objects
use Alzabo::Schema; my $schema = Alzabo::Schema->load_from_file( name => 'foo' ); foreach my $t ($schema->tables) { print $t->name; }
Objects in this class represent the entire schema, containing table objects, which in turn contain foreign key objects and column objects, which in turn contain column definition objects.
A string containing the name of the schema.
An Alzabo::Table object representing the specified table.
Alzabo::Table
Alzabo::Exception::Params
A list of Alzabo::Table object named in the list given. If no list is provided, then it returns all table objects in the schema.
A true or false value depending on whether or not the table exists in the schema.
Starts a transaction. Calls to this function may be nested and it will be handled properly.
Rollback a transaction.
Finishes a transaction with a commit. If you make multiple calls to begin_work, make sure to call this method the same number of times.
begin_work
This method takes a subroutine reference and wraps it in a transaction.
It will preserve the context of the caller and returns whatever the wrapped code would have returned.
The Alzabo::Driver subclass object for the schema.
Alzabo::Driver
The Alzabo::RDBMSRules subclass object for the schema.
Alzabo::RDBMSRules
The Alzabo::SQLMaker subclass object for the schema.
Alzabo::SQLMaker
Dave Rolsky, <autarch@urth.org>
To install Alzabo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Alzabo
CPAN shell
perl -MCPAN -e shell install Alzabo
For more information on module installation, please visit the detailed CPAN module installation guide.