Re: DB_DataObject - how to

From: Date: Mon, 08 Mar 2004 07:09:57 +0000
Subject: Re: DB_DataObject - how to
References: 1 2 3  Groups: php.pear.general php.pear.general 
Request: Send a blank email to pear-general+get-11148@lists.php.net to get a copy of this message
Marcos Neves wrote:
how can I get the last sql executed, since I think it's not possible get before the query be executed? try print_r'ing the getDatabaseConnection result - I think it's in there somewhere..
I may add support for user defined debuggers .. - eg. class mydebuger { function debug($type,$string,$level) { .... if $type is query .... } } DB_DataObject::debugLevel(new mydebugger); .. file it as a bug if you think it would be usefull...
for what are the paramenters table_example and database_example? how to use them?
if you are using multiple databases database_example = mysql://test:test@localhost/example ; eg. the database dsn for 'project' example table_example = example for table 'example' -> use 'project' example's dsn. Regards Alan
thanks antecipated. At 13:25 5/3/2004 +0100, Markus Tacker wrote:
Hallo Marcos Neves, Marcos Neves wrote:
Does AutoBuild can create the links.ini file?
No - where should it now from links between tables?
How can I have the number of rows result of a query?
$numRows = $dataobject->find(); $numRows = $dataobject->get($id);
How to get the connection resourse?
$dataobject->getDatabaseConnection(); // RTFM @ http://pear.php.net/manual/en/package.database.db-dataobject.db-dataobject.getdatabaseconnection.php
what means this at changeLog: make native key recognision a little better - changes ini file format (key=N|K) - native or key. What means native or key?
Native means that a key is a key by its nature. e.g. an autoincrement field is always a key. -- mit freundlichen Grüßen | Jabber: m@tacker.dyndns.org
  m.tacker                 |  ICQ:    9170 9561
-- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph
p
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

« previous php.pear.general (#11148) next »