mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: validate queries using sqlc-vet in github actions (#11163)
This commit is contained in:
@@ -82,6 +82,12 @@ sql:
|
||||
- schema: "./dump.sql"
|
||||
queries: "./queries"
|
||||
engine: "postgresql"
|
||||
# This only works if you are running a local postgres database with the
|
||||
# schema loaded and migrations run. Run `make sqlc-vet` to run the linter.
|
||||
database:
|
||||
uri: "${SQLC_DATABASE_URL}"
|
||||
rules:
|
||||
- sqlc/db-prepare
|
||||
gen:
|
||||
go:
|
||||
package: "database"
|
||||
|
||||
Reference in New Issue
Block a user