QueryTool questions
| From: | Jackson Miller | Date: | Mon, 15 Sep 2003 17:18:46 +0000 |
| Subject: | QueryTool questions | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-7819@lists.php.net to get a copy of this message | ||
I have two questions about QueryTool
1) Could a line be added to _construct to allow for using an existing DB
object.
Something along the lines of:
if (DB::isConnection($dsn)) {
// use that connection
} else {
if ($autoConnect) {
$this->connect($dsn);
}
}
The reason I ask for this is that it would make my life using QueryTool within
my application API classes a lot easier. On a high traffic site I really
want to keep DB connections to a minimum.
2) how do you set the LIMIT part of a query. Is that the getMultiple
function? I ask becuase the documentation is a little lacking in that area.
Thanks!
-Jackson
--
jackson miller
cold feet creative
615.321.3300 / 800.595.4401
jackson@coldfeetcreative.com
cold feet presents Emma
the world's easiest email marketing
Learn more @ http://www.myemma.com