• Hi,

    I’d like to implement dolt db but I’m not sure where to get info in order to modify class wpdb to use dolt instead of mariadb (like for postgresql), could you help me / advise me for doing so ?

    Do you think it might be relevant to all to do so too ?

    • This topic was modified 1 year, 10 months ago by Yui. Reason: moved to "developing with wordpress"
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Be sure your PHP installation has the PostgreSQL module enabled.

    The wpdb class can be extended and you can override which ever methods are necessary to make it Dolt compliant. For example, override wpdb::_do_query() to replace mysqli_query() calls with the PostgreSQL equivalent.

    When WP initializes, it instantiates a global wpdb object as $wpdb. You would need to replace it with your PostgreSQL variant of a wpdb object.

Viewing 1 replies (of 1 total)
  • The topic ‘Using Dolt DB in place of MySQL/MariaDB’ is closed to new replies.