Skip to content

Please add a PGX adapter #381

Open
Open
@veqryn

Description

@veqryn

Is your feature request related to a problem? Please describe.
Right now the default for Jet is to let postgres arrays get generated into golang strings.
You can override the generated types, but then you'd also have to implement your own scan/value functions too.
Using PGX directly (github.com/jackc/pgx/v5) lets us do things like scanning postgres arrays directly to a slice ([]int64), and many other great features.
Unfortunately, Jet only accepts the standard library database/sql interface, which forces us to use github.com/jackc/pgx/v5/stdlib

Describe the solution you'd like
Other scanning libraries such as scany and ksql provide an adapter that lets their library use both the standard library interface and also PGX directly.
It would be great if Jet provided similar.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions