Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(analyzer): Cache query analysis #2889

Merged
merged 4 commits into from
Oct 20, 2023
Merged

feat(analyzer): Cache query analysis #2889

merged 4 commits into from
Oct 20, 2023

Conversation

kyleconroy
Copy link
Collaborator

When using managed databases, cache the query analysis if the query, schema and configuration file hasn't change. Also take into account the version of sqlc.

Analysis can only be cached for managed databases as we can't know if a connected database has been changed.

When using managed databases, cache the query analysis if the query,
schema and configuration file hasn't change. Also take into account the
version of sqlc.

Analysis can only be cached for managed databases as we can't know if a
connected database has been changed.
@kyleconroy kyleconroy marked this pull request as ready for review October 19, 2023 23:25
protos/analyzer/pb/pb.proto Outdated Show resolved Hide resolved
internal/cache/cache.go Outdated Show resolved Hide resolved
internal/analyzer/analyzer.go Outdated Show resolved Hide resolved
internal/analyzer/analyzer.go Outdated Show resolved Hide resolved
internal/cmd/vet.go Outdated Show resolved Hide resolved
internal/analyzer/analyzer.go Show resolved Hide resolved
internal/analyzer/analyzer.go Outdated Show resolved Hide resolved
internal/analyzer/analyzer.go Show resolved Hide resolved
@kyleconroy kyleconroy merged commit 11a82f0 into main Oct 20, 2023
7 checks passed
@kyleconroy kyleconroy deleted the kyle/analyzer-cache branch October 20, 2023 18:45
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.

2 participants