The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Alzabo::Schema - Schema objects

SYNOPSIS

  use Alzabo::Schema;

  my $schema = Alzabo::Schema->load_from_file('foo');

  foreach my $t ($schema->tables)
  {
     print $t->name;
  }

DESCRIPTION

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.

METHODS

name

Returns

A string containing the name of the schema.

table ($name)

Returns

An Alzabo::Table object representing the specified table.

Throws

Alzabo::Exception::Params

tables (@optional_list)

Returns

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.

Throws

Alzabo::Exception::Params

driver

Returns

The Alzabo::Driver subclass object for the schema.

AUTHOR

Dave Rolsky, <autarch@urth.org>