NAME
Fuse::Template::Schema
DESCRIPTION
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.
SYNOPSIS
use Fuse::Template::Schema qw/Schema/;
# will import Schema typeconstraint
use Fuse::Template::Root qw/Schema/;
has foo => ( isa => Schema, coerce => 1 );
...
FUNCTIONS
from_string
$schema = from_string("$schema_class $dsn");
$schema = from_string("$schema_class $dsn $username $password");
$schema = from_string("$dsn ...");
from_hashref
$schema = from_hashref({
schema => $class_name, # optional
dsn => $dbi_dsn,
username => $str,
password => $str,
%dbi_params, # optional
});
AUTHOR
See Fuse::Template