Re: search() without search criteria

[prev] [thread] [next] [Date index for 2005/04/29]

From: Matt S Trout
Subject: Re: search() without search criteria
Date: 19:38 on 29 Apr 2005
On Fri, Apr 29, 2005 at 07:38:07PM +0100, Tony Bowden wrote:
> On Fri, Apr 29, 2005 at 05:53:00PM +0100, Will Hawes wrote:
> > A patch to search() (or rather, _do_search()) would be a better
> > solution. The ability to pass an empty hash to search() is logical and
> 
> Why? 
> 
> Surely a search with no search criteria is no longer a search?

I think it's more the concept of factoring _do_search to be a generic
"retrieve multiple elements" thing - ordering and limiting also get involved
here for both a retrieve-all (which isn't really if you're paging) and a
search, so there's definitely some common desirable features that could
be factored out here.

        -- 
            Matt S Trout            Brag sheet:    http://trout.me.uk/services.html
LAMP, Infrastructure        Contact:       services@xxxxx.xx.xx
   and Automation
     specialist                                       Do it once. Do it right.

(message missing)

search() without search criteria
Will Hawes 12:36 on 29 Apr 2005

Re: search() without search criteria
Matt S Trout 13:18 on 29 Apr 2005

Re: search() without search criteria
Daniel Wijnands 14:06 on 29 Apr 2005

Re: search() without search criteria
Perrin Harkins 14:25 on 29 Apr 2005

Re: search() without search criteria
Will Hawes 16:53 on 29 Apr 2005

Re: search() without search criteria
Tony Bowden 18:38 on 29 Apr 2005

Re: search() without search criteria
Matt S Trout 19:38 on 29 Apr 2005

Re: search() without search criteria
Will Hawes 20:19 on 29 Apr 2005

Re: search() without search criteria
Tony Bowden 22:48 on 29 Apr 2005

Re: search() without search criteria
Perrin Harkins 16:40 on 30 Apr 2005

Re: search() without search criteria
David Baird 14:31 on 29 Apr 2005

Re: search() without search criteria
Peter Speltz 19:11 on 29 Apr 2005

Re: search() without search criteria
Tony Bowden 22:52 on 29 Apr 2005

Re: search() without search criteria
Will Hawes 12:13 on 30 Apr 2005

Re: search() without search criteria
Tony Bowden 12:19 on 30 Apr 2005

Re: search() without search criteria
merlyn (Randal L. Schwartz) 15:44 on 30 Apr 2005

Re: search() without search criteria
Will Hawes 17:45 on 30 Apr 2005

Re: search() without search criteria
Tony Bowden 10:27 on 01 May 2005

Re: search() without search criteria
Will Hawes 14:13 on 01 May 2005

Generated at 10:24 on 04 May 2005 by mariachi v0.52