Skip to content

Conversation

@andrewmbenton
Copy link
Collaborator

Our codegen plugins don't produce output for queries that don't have an annotation like -- name: Foo :one, but sqlc still does a full query analysis. This change aborts the analysis for any query without an annotation.

The actual change is small, but a fair amount of test output had to be updated.

@kyleconroy kyleconroy merged commit f0184bc into main Dec 20, 2023
@kyleconroy kyleconroy deleted the andrew/skip-un-annotated-queries branch December 20, 2023 18:38
alfonsodev pushed a commit to ExponentiaTeam/sqlc that referenced this pull request Oct 13, 2025
…qlc-dev#3072)

* fix(compiler): Skip analysis of queries without a `name` annotation

Also update tests to work with new behavior

* Only run builtins test in base context for now
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.

3 participants