ibis.sql.postgres.api.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 : PostgreSQLDatabase
An
ibis.sql.postgres.client.PostgreSQLDatabase
instance.Notes
This creates a new connection if name is both not
None
and not equal to the current database.