ibis.backends.mysql.MySQLClient.database

MySQLClient.database(name=None)

Connect to a database called name.

Parameters

name (str, optional) – The name of the database to connect to. If None, return the database named self.current_database.

Returns

db – An ibis.sql.mysql.client.MySQLDatabase instance.

Return type

MySQLDatabase

Notes

This creates a new connection if name is both not None and not equal to the current database.