[Catalyst] Catalyst-Devel Patch

Todd Rinaldo toddr at null.net
Mon Jul 21 03:49:55 BST 2008


Hi,

I still think something should go in the manual explaining how this
works. I spent quite a bit of time trying to figure out how
Catalyst::Helper did it's magic. If a code reference shouldn't go in,
then could I recommend a link to the FAQ. I think allot of people get
their start with DBIC using Catalyst::Helper and so it's the natural
place they would look first.

On Sun, Jul 20, 2008 at 9:06 AM, J. Shirley <jshirley at gmail.com> wrote:
> 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
>
> _______________________________________________
> 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/
>
>



-- 
Todd Rinaldo
toddr at null.net



More information about the Catalyst mailing list