NAME

Teng::Schema::Loader - Dynamic Schema Loader

SYNOPSIS

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

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

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 instance of Teng::Scehema.

The arguments are:

dbh

Database handle from DBI.

namespace

your project name space.