Re: [rfc] Row limit support for Pear DB
| From: | Tomas V.V.Cox | Date: | Wed, 31 Oct 2001 11:59:39 +0000 |
| Subject: | Re: [rfc] Row limit support for Pear DB | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-2478@lists.php.net to get a copy of this message | ||
On Wednesday 31 October 2001 10:49, gus wrote:
> "Tomas V.V.Cox" schrieb:
> > ## Proto ##
> > // Modify the query and launch it when needed
> > (object) DB_"driver"::limitQuery(string $query, int $from, int
> > $to); // Simply launch the query
> > (object) DB_common::limitQuery(string $query, int $from, int $to);
>
> How about a separate SELECT builder class, which can handle other
> specific things (eg. joins), too?
>
Stig woke up one day with the idea of a SQL parser written in C. The
idea is cool and I needed it in many places, but the implementation of
it will be a hard sutff. Perhaps a first test implmentation in PHP
ported to C sometime...
Tomas V.V.Cox