Skip to content

feat(cmd/vet): Add built-in db-prepare rule#2396

Merged
kyleconroy merged 3 commits intomainfrom
kyle/db-prepare-rule
Jun 30, 2023
Merged

feat(cmd/vet): Add built-in db-prepare rule#2396
kyleconroy merged 3 commits intomainfrom
kyle/db-prepare-rule

Conversation

@kyleconroy
Copy link
Collaborator

Instead of always preparing a query when running vet, opt-in to doing it with the db-prepare rule.

Instead of always preparing a query when running vet, opt-in to doing it
with the `db-prepare` rule.
@kyleconroy kyleconroy merged commit 6fd9950 into main Jun 30, 2023
@kyleconroy kyleconroy deleted the kyle/db-prepare-rule branch June 30, 2023 21:30
alfonsodev pushed a commit to ExponentiaTeam/sqlc that referenced this pull request Oct 13, 2025
* feat(cmd/vet): Add built-in db-prepare rule

Instead of always preparing a query when running vet, opt-in to doing it
with the `db-prepare` rule.

* Error if db-prepare is used when a database connection isn't available

* namespace db-prepare
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant