ODBC vs Pear::db?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Is there any reason to use Pear:db if using odbc?  I am thinking that
odbc already provides enough abstraction.


Re: ODBC vs Pear::db?

Dan wrote:

Quoted text here. Click to load it

I don't know about PEAR::db, but PEAR::mdb goes beyond what ODBC does...

If your server has the RDMS's functions available (ora_*, pg_*, mysql_*,
msql_*, etc.), MDB will use them where appropriate. This helps with
performance as well as allowing for RDMS-specific features that are
emulated for others... Of course, I haven't dug through the code, that
is just my understanding of it...

Justin Koivisto - spam@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
              alt.php* groups are not recommended.

Site Timeline