Categorygithub.com/ledgera-io/go-sql-check
modulepackage
1.0.1
Repository: https://github.com/ledgera-io/go-sql-check.git
Documentation: pkg.go.dev

# README

go-sql-check

Installation

go install github.com/ledgera-io/go-sql-check@latest

And application code:

// main.go
package main

func main() {
	query := `--sql
SELECT some_nonexistent_field FROM products`
    // run query here...
}

We can run go-sql-check on it to check if all queries in the code are valid:

go-sql-check main.go

# Packages

No description provided by the author