简体   繁体   中英

Best way update from Pear::db to PDO,or PEAR::MDB2?

In my current project we use old library PEAR:DB .

We need replace this library on something better. But project in production,and very big,and many code from db layer use PEAR::DB .

What is the best way replace old code ,without broken functionality?
Maybe write emulator class for DB? or install MDB2 and just replace all DB to MDB2?

Updated:Now for CRUD use doctrine/dbal component!

PEAR's MDB2 package is a logical progression from the DB package, but even then it's considered very old now. You are probably better of using Doctrine's Database Abstraction Layer .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM