Skip to content

Make AsyncpgConfig generic to support user defined record classes #30

@iyad-f

Description

@iyad-f

Currently the get_connection method returns AsyncGenerator[AsyncpgConnection, None], which wont be the correct type for all users, since a lot of users have custom defined record classes, so imo we should make AsyncpgConfig accept a Record generic which we will use to type hint generators which are yielding the connection. If you are okay with this i can go ahead and make a PR

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