Skip to content

How to get SqlBoiler v3.5.0 CLI to generate code that includes transaction support? #1340

Closed Answered by stephenafamo
kizjig asked this question in Q&A
Discussion options

You must be logged in to vote

boil.Executor is an interface that is satisfied by both *sql.DB and *sql.Tx so you can pass the tx pointer to it and it would work as you expect.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@stephenafamo
Comment options

@kizjig
Comment options

Answer selected by stephenafamo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants