Skip to content

PostgreSQL dbapi.connect ignores conn_kwargs and db_kwargs #2696

@fwojciec

Description

@fwojciec

What happened?

PostgreSQL driver dbapi.connect accepts conn_kwargs and db_kwargs as a params, but the implementation of that function ignores both values:

db_kwargs are never passed to the adbc_driver_postgresql.connect function:

db = adbc_driver_postgresql.connect(uri)

conn_kwargs are never passed to the adbc_driver_manager.dbapi.Connection call:

conn = adbc_driver_manager.AdbcConnection(db)

Is this intended? Or a bug? Is there another way to pass things like keepalive settings etc. to the underlying Connection?

If this is a bug, I'd be happy to make a PR to fix it, but wanted to check here first.

Stack Trace

N/A

How can we reproduce the bug?

N/A

Environment/Setup

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions