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.
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:Open()?Thanks.