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


Fuse-Template documentation  | view source Contained in the Fuse-Template distribution.

Index


NAME

Top

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

DESCRIPTION

Top

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

Top

 use Fuse::Template::Schema qw/Schema/;

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

FUNCTIONS

Top

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

Top

See Fuse::Template


Fuse-Template documentation  | view source Contained in the Fuse-Template distribution.