Re: some MDB2 questions

From: Date: Mon, 14 Feb 2005 12:49:25 +0000
Subject: Re: some MDB2 questions
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-36189@lists.php.net to get a copy of this message
Lukas Smith wrote:
The reason is that I focused on having a consistent API. This means that I dont to have certain parameters following certain others in all my methods calls.
So you do NOT care about a specific order of parameters? In this case it would be nice to have the parameters consistent to PEAR::DB API, I think.
Then again, such a method isnt very consistent with the concept of abstraction anyways (which is why I placed it in the extended module). So if you feel that this is sufficiently consistent with the rest of the API I dont have a problem changing it.
For now I do not use these extra parameters. I try to switch a large existing application from PEAR::DB to MDB2 - without a wrapper. I think for the future it is nice to have a Database-API close to PDO-API. For existing PEAR::DB application this change in MDB2 API would be nice. Also for people who don't want to use the new parameters, because they don't need a ",NULL,NULL," somewhere between their "usual" parameters in every call. I think this is worth a change, but perhaps other people think of that in a different way? regards, Andreas

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