Results 489 comments of Jack Christensen

Was this PR intended for the main pgx repo? Everything is in an `internal` path so it wouldn't be usable.

See https://github.com/jackc/pgx/pull/2048 for some discussion of copying type maps.

I think https://pkg.go.dev/github.com/jackc/pgx/v5/pgconn#PgConn.Hijack is what you want.

I have determined what the problem is, but a full solution is eluding me. Here's what is happening. pgx's `CopyFrom` always uses the binary format. However, you are passing it...

I'll leave it open for now. It *is* a bug. Even if one I'm not sure can be fixed.

First, `Query` will never return `ErrNoRows`. A query returning no rows is a perfectly valid result. Only `QueryRow` has the expectation of a non-empty result. Second, the fact that your...

@silentstranger5 Not sure what's going on from that little snippet -- but you should test errors with https://pkg.go.dev/errors#Is.

`QueryRow` and `CollectOneRow` are designed for when exactly one row is expected and it is an error if it is not found. Typically, this is find a single row by...

That's definitely doable. In your example, `pgx.StructArgs(m)` would return a `pgx.QueryRewriter` that reflected over the struct fields.

The function could return a `pgx.NamedArgs`.