Skip to content

Allow passing through psycopg.connect params in factories.postgresql() #1418

Description

@brandonchinn178

I'd like to set row_factory=psycopg.rows.dict_row for the connection returned by the pytest fixture.

Current workaround:

@pytest.fixture(autouse=True)
def set_default_row_factory(client: psycopg.Connection):
    client.row_factory = psycopg.rows.dict_row

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions