43a2be15
database/middleware: don't use sql.Conn in WithTx
We can just use sql.DB instead of sql.Conn here. Simplifies the code and reduces the risk of getting "bad connection" errors.
Simon Ser <contact@emersion.fr> — 2023-06-13 08:49:19 UTC
Commit 43a2be15d5b7c7bf3746cd5d7088143efae9b6a1 —
view raw patch
Parent(s):
6f6bb872
| File | Status | + | − |
|---|---|---|---|
database/middleware.go
|
M | +2 | -6 |