sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

WithTx should accept a DBTX interface instance, not a concrete *sql.Tx or pgx.Tx for Go.

Open urandom opened this issue 1 year ago • 0 comments

What do you want to change?

Currently, when the WithTx method is generated, it accepts a concrete type: either an *sql.Tx or a pgx.Tx. However, the arguments ends up being assigned to a DBTX-typed field. The argument then should also be of type DBTX

What database engines need to be changed?

PostgreSQL

What programming language backends need to be changed?

Go

urandom avatar Sep 12 '24 15:09 urandom