ibis.backends.postgres.PostgreSQLClient.database¶
-
PostgreSQLClient.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 namedself.current_database.- Returns
db – An
ibis.sql.postgres.client.PostgreSQLDatabaseinstance.- Return type
PostgreSQLDatabase
Notes
This creates a new connection if name is both not
Noneand not equal to the current database.