A couple of naive questions here. I hear PEAR::DB is deprecated in favor of
MDB2. If that's so,

* does that mean we should definitely use MDB2 instead of DB in new projects
that we undertake?

* what is MDB there for?

* DB had a nice autoExecute(), but its counterpart in MDB2 requires you to
tell it the datatype of each parameter. If I intend to use MySQL and not
planning to support other backends (except maybe something like SQLite), is
there any reason not to lie to it and say that everything is 'text'?  My
motivation is Laziness, shorter code, less hard-coded SQL, e.g.:

    $db->autoExecute($this->table, $this->data, DB_AUTOQUERY_UPDATE, $where
);

* Suppose you like the PEAR::Auth module. It supports DB but not its
successors. Write your own storage container that wraps MDB2? Is it worth
it?

Thanks,

--
David Mintz
http://davidmintz.org/

En Nueva York el tránsito de la belleza a la desolación sucede siempre
expeditivamente, como si el principio universal de máxima eficiencia hubiera
aconsejado la supresión de gradaciones intermedias.

 -- Antonio Muñoz Molina, Ventanas de Manhattan
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to