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.