sqlclosecheck
sqlclosecheck copied to clipboard
Statements prepared in transaction do not need to be closed
Because, quoting documentation, "The statements prepared for a transaction by calling the transaction's Prepare or Stmt methods are closed by the call to Commit or Rollback.". https://pkg.go.dev/database/sql#Tx
Linter should avoid printing warnings about this.