sqlvet icon indicating copy to clipboard operation
sqlvet copied to clipboard

Go fearless SQL. Sqlvet performs static analysis on raw SQL queries in your Go code base.

Results 7 sqlvet issues
Sort by recently updated
recently updated
newest added

I just ran into an issue with one of my queries and it seems sqlvet cannot handle this sort of Update-Query: ``` UPDATE activities u SET ref_id = c.ref_id FROM...

Use golang.org/x/tools/go/analysis framework. It's simpler, faster. It also allows analyzing individual packages, not the whole program. As a simple benchmark, running the sqlvet (old or new) on a 100kloc source...

The current sqlvet requires full parsing of the entire main package(s), so it becomes pretty slow for a large codebase. There's conveniently an article about using "go vet"'s analysis.Analyzer framework...

Upgrade Go version to 1.18 and upgrade golang.org/x/tools package. This is needed as `sqlvet` gave errors while vetting the Go 1.18 generics code. Upgrading the `golang.org/x/tools` fixes the error. Below...

golangci-lint is a cool metalinter which makes it easy to include lots of popular Go linters in a build process. There are [lots of linters supported already](https://golangci-lint.run/usage/linters/) but I didn't...

I was just checking a PR in that big codebase I needed this linter for and in lieu of actually fixing everything that gets flagged I was using a version...

enhancement
good first issue

When using the binary from the release page or building `master` from the source, the command fails when a schema has not been specified: ``` [!] No schema specified, will...