Saturday, June 5, 2010

PEAR::DB database replacement


PEAR::DB database replacement



EAR::DB is all well and good if you want to connect to multiple databases (I assume, I've never actually used it with anything other than mysql) but it is somewhat hefty on the bad side of 60k. Not a good thing if you're not using some sort of accelerator and have a high traffic site. Here's a class which replicates the PEAR::DB API (the bits that I use anyhoo) and weighs in at a much nicer ~11k. Sweet. Grab it from the download section.
Documentation
The documentation for the API (if you're using PEaR::DB then you probably know most of it already) is in the archive.

No comments:

Post a Comment