MDB 2.x
| From: | Lukas Smith | Date: | Tue, 19 Aug 2003 19:04:33 +0000 |
| Subject: | MDB 2.x | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-20066@lists.php.net to get a copy of this message | ||
Hi,
just wanted to inform you all that MDB 2.x is now mostly done. Atleast
what I have planned.
The API has changed a lot though :-/
- A lot of methods were removed because they are now unnecessary.
- A few methods have changed parameter orders or behaviour (for example
the fetch* methods don't free the result set anymore)
- All array keys of parameters are now lowercased with underscores as
word separators
- LOB support is dramatically simplified and you can now use the bulk
fetching methods with LOB's
- A bunch of things where moved to separate classes most notably the
"extended" methods such as queryOne, queryRow, queryCol, queryAll and
the get* methods and executeMultiple
- You can now optionally define a class into which a result resource can
be wrapped (just like DB does as default)
Generally MDB 2.x should feel a lot more intuitive for DB users. The
code is now also a lot cleaner and should therefore be easier for other
developers to get along.
I have tested everything with mysql (3.x and 4.x), postgresql and oracle
on windows and linux.
Please have a look at the example.php and the test suite to get a better
idea of the new API.
Since the last changes are still a bit fresh I will not package a
preview release just yet. But I would welcome any feedback.
Regards,
Lukas Smith
smith@backendmedia.com
_______________________________
BackendMedia
www.backendmedia.com
berlin@backendmedia.com
Linn Zwoch Smith GbR
Pariser Str. 44
D-10707 Berlin
Tel +49 30 83 22 50 00
Fax +49 30 83 22 50 07