[Catalyst] Where is the DAO equivalent?
Jarom Smith
jarom at jaromsmith.net
Thu May 28 00:05:28 GMT 2009
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 guy
Tobias Kremer wrote:
> 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 perform that query. I don't
>> mind re-writing the methods to
>
> I suppose you want "Predefined searches":
>
> http://search.cpan.org/dist/DBIx-Class/lib/DBIx/Class/Manual/Cookbook.pod#Predefined_searches
>
>
> If you don't want to manually set your ResultSet classes with
> ->resultset_class take a look at load_namespaces() which will
> automatically do this based on two distinct namespaces for ResultSources
> and ResultSets:
>
> http://search.cpan.org/dist/DBIx-Class/lib/DBIx/Class/Schema.pm#load_namespaces
>
>
> By the way, there's also a dedicated DBIC mailing list for which this
> question is probably better suited :)
>
> HTH,
> --Tobias
>
> _______________________________________________
> 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/
More information about the Catalyst
mailing list