Re: Class::DBI::Set

[prev] [thread] [next] [Date index for 2004/06/28]

From: Tony Bowden
Subject: Re: Class::DBI::Set
Date: 10:10 on 28 Jun 2004
On Mon, Jun 28, 2004 at 01:19:40AM -0700, steve shapero wrote:
> how  are people doing this?  it's not so useful for me to just search 
> on one table.  Especially b/c i'd like to be able to this:
> my $tracks = find_tracks(track_name => '%something', artist_name => '$else');

my @tracks = grep $_->artist->name =~ /whatever/, 
	Tracks->search(name => "whatever");

or

my @tracks = map $_->tracks(name => "whatever"), 
  Artist->search(name => "whatever");

If there are too many for that to be practical, then you can use set_sql
to write the query required.

Tony

Class::DBI::Set
Yuval Kogman 18:08 on 25 Jun 2004

Re: Class::DBI::Set
steve shapero 08:19 on 28 Jun 2004

Re: Class::DBI::Set
Yuval Kogman 13:26 on 27 Jun 2004

Re: Class::DBI::Set
merlyn (Randal L. Schwartz) 14:23 on 28 Jun 2004

Re: Class::DBI::Set
Tony Bowden 10:10 on 28 Jun 2004

Re: Class::DBI::Set
"raptor 12:58 on 28 Jun 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52