MySQL

Install dependencies for Ibis’s MySQL dialect:

pip install ibis-framework[mysql]

Create a client by passing a connection string or individual parameters to ibis.mysql.connect():

con = ibis.mysql.connect(url='mysql+pymysql://ibis:ibis@mysql/ibis_testing')
con = ibis.mysql.connect(
    user='ibis',
    password='ibis',
    host='mysql',
    database='ibis_testing',
)

API

The MySQL client is accessible through the ibis.mysql namespace.

Use ibis.mysql.connect with a SQLAlchemy-compatible connection string to create a client.

connect([host, user, password, port, …])

Create an Ibis client located at user:password`@`host:port connected to a MySQL database named database.

MySQLClient.database([name])

Connect to a database called name.

MySQLClient.list_databases()

MySQLClient.list_tables([like, database, schema])

List tables/views in the current or indicated database.

MySQLClient.table(name[, database, schema])

Create a table expression that references a particular a table called name in a MySQL database called database.