Golang Linter for detecting SQL Transaction Begin, Commit and Rollback #6154
Unanswered
adibaulia
asked this question in
Linter Ideas
Replies: 1 comment
-
|
I am not aware of a linter that reliably detects unclosed SQL transactions. But you could try these SQL-related linters in Golangci-lint:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I’m looking for a Go linter or a golangci-lint plugin that can detect unclosed SQL transactions (e.g., missing Commit() or Rollback()), whether using pgx, libpq, or any other driver.
We’re dealing with a large codebase and sometimes run into issues where SQL transaction blocks aren’t properly handled. Has anyone faced a similar problem or found a good tool to catch this?
Beta Was this translation helpful? Give feedback.
All reactions