sqlclosecheck

module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: MIT

README

sqlclosecheck

ryanrolds

Linter that checks if SQL rows/statements are closed. Unclosed rows and statements may cause DB connection pool exhaustion.

Running

make build
make install

In your project directory:

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

Roadmap

  • Get linter working
  • Added some basic test cases
  • Require that Close deferred
  • Test across a bunch of projects
  • Introduce linter to golangci-lint.

Directories

Path Synopsis
cmd
sqlclosecheck command
pkg

Jump to

Keyboard shortcuts

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