[Dbix-class] Creating 'query' objects
Gert Burger
gburger at cs.up.ac.za
Wed Jan 25 13:05:29 CET 2006
That seems to be what I need. Thanks
Schema's are still a bit confusing but i should get over it soon ;->
On Tue, 2006-01-24 at 14:45 +0000, Will Hawes wrote:
> Gert Burger wrote:
> > Hi
> >
> > I'm very new to DBIx::Class and I am very conduffled atm.
> > I would like to create a Class based on dbixc that would always give me
> > access to a query which is similiar to "select col from table group by
> > col" in mysql.
> >
> > This may seem odd, but I need to access a database from another program
> > which tags row's based on events, but it doesnt not have a table with
> > all the events. So I have to discover the events using a group or
> > distinct.
> >
> > Thanks in advance.
> > Gert Burger
> >
>
> Sounds like "Grouping results" at
> http://dev.catalyst.perl.org/trac/bast/browser/branches/DBIx-Class-resultset/lib/DBIx/Class/Manual/Cookbook.pod
> is what you need.
>
> The above example uses the newer (and recommended) schema-based approach
> - if you need an intro to that, please read the following too:
>
> http://dev.catalyst.perl.org/trac/bast/browser/branches/DBIx-Class-resultset/lib/DBIx/Class/Manual/SchemaIntro.pod
>
>
> _______________________________________________
> List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
> Wiki: http://dbix-class.shadowcatsystems.co.uk/
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
More information about the Dbix-class
mailing list