cho45 (さとう) > Teng-0.26 > Teng::Schema::Loader

Download:
Teng-0.26.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source  

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: