On Thu, 21 Jun 2007 10:15:08 +0200, Andrej Mocilnik
<[EMAIL PROTECTED]> wrote:
> Hi,
> I'm running PHP5 together with PostgreSQL as DB. I don't know much about
> MDB2, but I think PDO is the best abstract layer for DB access.
> Regardless PHP5 vs PHP4, I think OOP is the only way to keep a project
> flexible while growing and it makes team work easier too. PHP5 can
> benefits of objects properties like inheritance, abstraction,
> interfaces, code reuse, exceptions handling,...
> Programming with object-oriented syntax the code becomes more readable
> and the project can benefits of it a lot.
In my opinion a real DB abstraction that also abstracts all your SQL
queries like MDB2 works against the speed improvements you have when you
use PDO. I don't see what's wrong with
SELECT * FROM table WHERE id=?
compared to
$q = new SelectQuery();
$q->selectFrom('table');
$q->where('id', $id);
.. just making this up now, but I think the first one is much more
readable.
And honestly, on which databases will Roundcube exist? Most probably 98%
MySQL.... don't invest too much time in the 2% other users.... it's not
worth the effort!
Mike
--
Michael Baierl
mbaierl.com http://mbaierl.com/
- - - - - - - - - - - - - - - - -
'In God we trust, all others we monitor'