NAME
Catalyst::Helper::Model::JDBI::Schemas
SYNOPSIS
# to create a JDBI::Schemas class
script/app_create.pl model ModelName JDBI::Schemas
# or, if you really want to hard-code your configuration
script/app_create.pl model ModelName JDBI::Schemas Schema::Base database test.db ...
# to create a JDBI::Record/Collection classes under the Model
script/create.pl model ModelName::RecordName JDBI::Schemas
DESCRIPTION
This helper helps you to create a C::M::JDBI::Schemas Model class, and optionally, Jifty::DBI::Record/Collection classes under the Model.
Model class will be created when you run it for the first time. Specify your CatalystApp::Model::Name's basename ("Name" for this case), then, this helper's name (JDBI::Schemas).
If you really want to specify schema_base for the model (which is equal to the Model class by default), append that Schema::Base::Name, and the key/value pairs of connect_info hash, too. However, I recommend to use ConfigLoader to avoid hard-coded configuration.
When you set up a Model class, you can create Record/Collection classes. Specify ModelName::RecordName (or Schema::Base::Name), and helper's name. Note that Collection class is created automatically. You don't need to (actually, you shouldn't) specify Collection class name, which is confusing.
METHODS
mk_compclass
creates actual Model/Record/Collection classes.
AUTHOR
Kenichi Ishigaki, <ishigaki@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2007 by Kenichi Ishigaki.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.