MySQL Extensions

Peewee provides an alternate database implementation for using the mysql-connector driver. The implementation can be found in playhouse.mysql_ext.

Example usage:

  1. from playhouse.mysql_ext import MySQLConnectorDatabase
  2. # MySQL database implementation that utilizes mysql-connector driver.
  3. db = MySQLConnectorDatabase('my_database', host='1.2.3.4', user='mysql')