Re: [Catalyst] Where is the DAO equivalent?

2009-05-28 Thread Tomas Doran
Jarom Smith wrote: Hello Catalysters: First of all, a thousand apologies if this is a FAQ (and if it is, please point me in the right direction). I have been programming in Perl for a while but I freely admit there's a lot I don't know, which is why I am here. I have completed the Catalyst

[Catalyst] Where is the DAO equivalent?

2009-05-27 Thread Jarom Smith
Hello Catalysters: First of all, a thousand apologies if this is a FAQ (and if it is, please point me in the right direction). I have been programming in Perl for a while but I freely admit there's a lot I don't know, which is why I am here. I have completed the Catalyst tutorial, purchased

Re: [Catalyst] Where is the DAO equivalent?

2009-05-27 Thread Tobias Kremer
Hi Jarom, On 27.05.2009, at 18:59, Jarom Smith wrote: $vendor_name})-all; However, some of these methods are more complicated/complex and the proper DBIC invocation to produce an equivalent result to my DBI method is more than I would want to try to remember or replace each time I need to

Re: [Catalyst] Where is the DAO equivalent?

2009-05-27 Thread Johannes Plunien
On 27.05.2009, at 18:59, Jarom Smith wrote: So, my question is: In a Catalyst context, where do I put these kinds of helper DB methods and how do I access them? (both from within a Catalyst app, as well as from the command-line like in a Cron job or whatever...) Some actual specific

Re: [Catalyst] Where is the DAO equivalent?

2009-05-27 Thread Jarom Smith
Thank you Tobias! That is what I was looking for. I note that Catalyst has automatically created a Schema.pm with __PACKAGE__-load_namespaces(), so all I needed to do was create ResultSet classes corresponding to my Result classes, and everything else just worked. jarom smith tech go-to