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.PostgreSQLDatabase
instance.- Return type
PostgreSQLDatabase
Notes
This creates a new connection if name is both not
None
and not equal to the current database.