Skip to content

pgx driver and initialization order #92

@undeconstructed

Description

@undeconstructed

In my project the pgx driver is initialized after the postgres adaptor. This means that https://github.com/go-rel/postgres/blob/main/postgres.go#L202 doesn't find the driver, and defaults to postgres, which isn't inlcuded. Is there either:

  • a reason to search for the driver in the init function - or could this be moved to Open() ?
  • a way to force the initialization order - I think not, because the adaptor doesn't depend on pgx, so it could always be initialized first.

Thanks.

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