txrollbackcheck

command module
v0.0.0-...-e844927 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 2 Imported by: 0

README

txrollbackcheck

Forked from https://github.com/ryanrolds/sqlclosecheck

Linter that checks if SQL transaction are having defer Rollback(). are closed. Missing rollback may cause DB connection pool exhaustion.

Running

make build
make install

In your project directory:

go vet -vettool=$(which txrollbackcheck) ./...

CI

go install github.com/herpiko/txrollbackcheck@latest
go vet -vettool=${GOPATH}/bin/txrollbackcheck ./...

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL