[Catalyst] Catalyst-Devel Patch

Todd Rinaldo toddr at null.net
Sun Jul 20 14:42:26 BST 2008

Hi, yesterday, I asked a question in DBIC channel about how
Catalyst::Helper auto-produces schema. It was answered with purl:
make_schema_at. I suggest this be put in Catalyst::Helper so people
can more easily find the answer

I'm sorry if this is not in the right format, but diff -u -b does not
work on OSX

$>svn diff lib/Catalyst/Helper.pm
Index: lib/Catalyst/Helper.pm
--- lib/Catalyst/Helper.pm	(revision 8143)
+++ lib/Catalyst/Helper.pm	(working copy)
@@ -521,6 +521,19 @@
 The helpers will read author name from /etc/passwd by default.
 To override, please export the AUTHOR variable.

+=head1 FAQ
+=item B<How does Catalyst::Helper generate schema?>
+For More information, see B<DBIx::Class::Schema::Loader>.
+An example command of how this would be produced is as follows:
+    perl -MDBIx::Class::Schema::Loader=make_schema_at,dump_to_dir:./lib
-e 'make_schema_at("My::Schema", { debug => 1, db_schema =>
"myschemaname" }, [ "dbi:Pg:host=localhost;dbname=mydbname", "user",
"pass" ])'
 =head1 SEE ALSO

 L<Catalyst::Manual>, L<Catalyst::Test>, L<Catalyst::Request>,

More information about the Catalyst mailing list