Atsushi Kobayashi > Teng > Teng::Schema::Loader

Download:
Teng-0.18.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Teng-0.25

NAME ^

Teng::Schema::Loader - Dynamic Schema Loader

SYNOPSIS ^

    use Teng;
    use Teng::Schema::Loader;

    my $teng = Teng::Schema::Loader->load(
        dbh       => $dbh,
        namespace => 'MyAPP::DB'
    );

DESCRIPTION ^

Teng::Schema::Loader loads schema directly from DB.

CLASS METHODS ^

Teng::Schema::Loader->load(%attr)

This is the method to load schema from DB. It returns the instance of the given namespace class which inherits Teng.

The arguments are:

dbh

Database handle from DBI.

namespace

your project name space.

syntax highlighting: