adbc_driver_postgresql#

Low-Level API#

adbc_driver_postgresql.connect(uri: str) AdbcDatabase#

Create a low level ADBC connection to PostgreSQL.

DBAPI 2.0 API#

DBAPI 2.0-compatible facade for the ADBC libpq driver.

adbc_driver_postgresql.dbapi.connect(uri: str, db_kwargs: Optional[Dict[str, str]] = None, conn_kwargs: Optional[Dict[str, str]] = None, **kwargs) Connection#

Connect to PostgreSQL via ADBC.

Parameters:
uristr

The URI to connect to.

db_kwargsdict, optional

Initial database connection parameters.

conn_kwargsdict, optional

Connection-specific parameters. (ADBC differentiates between a ‘database’ object shared between multiple ‘connection’ objects.)