
Fuse::Template::Schema - Dynamic load of database schema

Using DBIx::Class::Schema::Loader to read table definitions from database will use the default moniker rules to name resultsets from table names. See "moniker_map" in DBIx::Class::Schema::Loader::Base for details.

use Fuse::Template::Schema qw/Schema/; # will import Schema typeconstraint use Fuse::Template::Root qw/Schema/; has foo => ( isa => Schema, coerce => 1 ); ...

$schema = from_string("$schema_class $dsn");
$schema = from_string("$schema_class $dsn $username $password");
$schema = from_string("$dsn ...");
$schema = from_hashref({
schema => $class_name, # optional
dsn => $dbi_dsn,
username => $str,
password => $str,
%dbi_params, # optional
});

See Fuse::Template