[Catalyst] Catalyst-Devel Patch
J. Shirley
jshirley at gmail.com
Sun Jul 20 15:06:00 BST 2008
On Sun, Jul 20, 2008 at 6:42 AM, Todd Rinaldo <toddr at null.net> wrote:
> 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 at 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/
>
Thanks for your patch, but you are confusing projects. DBIx::Class
and Catalyst are two distinct and separate projects and you won't see
anything aside from references in the manuals for each.
The DBIx::Class cookbook has the answer to the question you asked:
http://search.cpan.org/~ash/DBIx-Class-0.08010/lib/DBIx/Class/Manual/Cookbook.pod#Creating_Schemas_From_An_Existing_Database
More information about the Catalyst
mailing list