NAME
Catalyst::Helper::Model::DBIC::SchemaLoader - Helper for AutoLoaded DBIC Schema Models
SYNOPSIS
script/myapp_create.pl model Foo DBIC::SchemaLoader [ connect info arguments ]
Where:
Foo is the short name for the Model class being generated
connect_info arguments are the same as what DBIx::Class::Schema::connect
expects, and are storage_type-specific. For DBI-based storage, these
arguments are the dsn, username, password, and connect options,
respectively.
TYPICAL EXAMPLE
script/myapp_create.pl model Foo DBIC::SchemaLoader dbi:mysql:foodb myuname mypass '{ AutoCommit => 1 }'
DESCRIPTION
This helper generates two classes:
First, it generates a DBIx::Class::Schema::Loader class at lib/MyApp/SchemaLoader/Foo.pm based on your supplied dsn/user/pass.
Then, it generates a Catalyst::Model::DBIC::Schema at lib/MyApp/M/Foo.pm, which references the above-generated loader.
Models generated by this Helper require the seperate package DBIx::Class::Schema::Loader to be installed. It is on the recommended list for this package, but is not required for installation.
METHODS
mk_compclass
SEE ALSO
General Catalyst Stuff:
Catalyst::Manual, Catalyst::Test, Catalyst::Request, Catalyst::Response, Catalyst::Helper, Catalyst,
Stuff related to DBIC and this Model style:
DBIx::Class, DBIx::Class::Schema, DBIx::Class::Schema::Loader, Catalyst::Model::DBIC::Schema, Catalyst::Helper::Model::DBIC::Schema
AUTHOR
Brandon L Black, blblack@gmail.com
LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.