Return Querier
interface from WithTx
when interface is emitted.
#3701
Labels
Querier
interface from WithTx
when interface is emitted.
#3701
What do you want to change?
When you specify the flag:
emit_interface: true
in thesqlc.yaml
, theQuerier
interface is generated. This is a great feature, however, theWithTx
method returns a*Queries
pointer, making the use of the interface hard:It would be great to return the interface when the previously mentioned flag is set to true:
Happy to create a PR for it if you like the idea.
What database engines need to be changed?
No response
What programming language backends need to be changed?
Go
The text was updated successfully, but these errors were encountered: