Skip to content

Replace standalone pgconn import with pgx/v5/pgconn #24

@Vad1mo

Description

@Vad1mo

dbtracer/dbtracer.go imports the standalone github.com/jackc/pgconn (pgx/v4-era module) while the rest of the library uses pgx/v5, where pgconn was folded into the main module.

Any project that uses sqlc-pgx-monitoring alongside pgx/v5 gets the standalone pgconn (and its transitive deps) pulled into their go.mod. This is problematic for projects that are migrating away from pgx/v4 and want a clean dependency graph with no v4 remnants.

The only workaround is a local patched copy with a replace directive.

Happy to submit a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions