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
+
+=over
+
+=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" ])'
+
+=back
+
 =head1 SEE ALSO

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

_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to