Re: [PHP-PEAR] RFC on merge of PHPLib and Pear

[email protected] ("Paul Meagher") Thu, 8 Mar 2001 11:35:09 -0400
Newsgroups php.pear
Message-ID <015001c0a7e5$5c96a5e0$6c35de18@datavore>
> Giving runtime parameters to DB_Sql is also possible.

I have done this in a recent quick hack.  Didn't bother subclassing.  Just
"hard coded" the db parameters in the class.  So setting configs manually
is possible but not really recommended with PHPLIB.

This brings up another issue for me.  Say I want to distribute a little app
on Freshmeat and I want to use a db abstraction layer in my app.  With
PHPLIB this is quite easy.  I can just grab the db_sql class for mysql and
bundle that with the app.

Was PEAR::DB developed to allow similiar distribution of, say, the mysql
class? If I want to include PEAR's db abstraction layer for MySQL in my
little app, what is the minumum I would need?

Regards,
Paul