adbc_driver_postgresql#

Low-Level API#

class adbc_driver_postgresql.StatementOptions(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#

Bases: Enum

Statement options specific to the PostgreSQL driver.

BATCH_SIZE_HINT_BYTES = 'adbc.postgresql.batch_size_hint_bytes'#

Try to limit returned batches to this size (in bytes).

This is merely a hint, and because the size is estimated, the actual size may differ.

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: Dict[str, str] | None = None, conn_kwargs: Dict[str, str] | None = 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.)