[wp-hackers] Making WordPress database independent

Peter Westwood peter.westwood at ftwr.co.uk
Mon Feb 7 18:17:26 UTC 2011


On 7 Feb 2011, at 18:14, Matthew McGarity wrote:

> The issue of too many platforms to test is mitigated if all of the SQL calls
> are encapsulated in wpdb -- right now, that's not the case.  If you get to
> that point, I still think that you only develop WordPress to function on
> MySQL, then leave it up to the third-party people to do the swap-out and
> testing for their specific platforms.


You don't have to encapsulate the SQL calls just ensure that they are only made via WPDB as we do at the moment.

db.php drop-ins exist which rewrite the SQL to match another databases SQL.

Cheers
-- 
Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5



More information about the wp-hackers mailing list