Re: Extending "Limit" support

From: Date: Sun, 25 Nov 2001 00:16:57 +0000
Subject: Re: Extending "Limit" support
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-3071@lists.php.net to get a copy of this message
"Tomas V.V.Cox" wrote: > > Hi, > > I've been playing with the limit support and want to make it avaible in > execute, getCol, getAssoc and getAll. But I'm not sure on the execute > thing. For ex if I add it in execute it will look like: > > $db->execute($stmt, $data, $from, $count); > but now query() doesn't have that params, it use limitQuery() instead > and perhaps will confuse people. So to unify the API I propose: > > a) Add limitExecute() and use the limit* family to do that, or: > > b) Add the extra params from/count to query() and execute() and drop > limitQuery(), loosing the chance of putting other coolest params in the > future. > > What way would you prefer? What about having a function that sets the limit for the next query? Or simply drop limitQuery and parse the query? - Stig

« previous php.pear.dev (#3071) next »