How to get SqlBoiler v3.5.0 CLI to generate code that includes transaction support? #1340
-
Hi, Eg: When we generate the Go code with
But my generated code just has this function signatures like this (without the
What am I doing wrong? When running TIA 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
boil.Executor
is an interface that is satisfied by both*sql.DB
and*sql.Tx
so you can pass thetx
pointer to it and it would work as you expect.