sqlclosecheck

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: MIT Imports: 2 Imported by: 0

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) ./...

CI

go install github.com/ryanrolds/sqlclosecheck
go vet -vettool=${GOPATH}/bin/sqlclosecheck ./...

Roadmap

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

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