Re: MDB Questions - switching to MDB, failover and soon...

From: Date: Mon, 17 Jul 2006 11:42:15 +0000
Subject: Re: MDB Questions - switching to MDB, failover and soon...
References: 1 2 3 4 5 6  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-43504@lists.php.net to get a copy of this message
It's surprising to hear that the new version won't use a driver approach. Then I could use DB, MDB, PDO, or another, or even roll my own. The author should consider how to structure the code to achieve this architecture. Especially since it is php5, which supports those types of oop patterns better than php4. On 7/17/06, Lukas Smith <lsmith@php.net> wrote:
Alan Knowles wrote: I'm waiting to see how DataObjects2 looks , starting from a base of PDO, then adding MDB2 features on seems like a more efficient way, - get it working first, get it working really well second... Apart from the sequence key abstraction, the core stuff of dataobjects, only needs PDO, the generator however will probably benefit more from MDB2. Well .. I never liked the approach of handling the portability stuff via if's inside the code for the nitty gritty portability stuff, rather than with a driver approach. So I guess its a fundamental disagreement about the structure of the code. However it makes the code much less modular, means that adding a new driver or fixing a bug means messing with the core etc. In some places it might make sense to do some high level abstraction inside the ORM to exploit the fact that you can construct the entire SQL yourself, contrary to MDB2 which just provides methods to construct portable SQL yourself. regards, Lukas
-- -- Matt Friedman

« previous php.pear.dev (#43504) next »