feat(db): wal mode and inferred response shapes in block_schema_cache#1
Merged
Conversation
gandarfh
force-pushed
the
fix/sqlite-wal-journal-mode
branch
from
June 10, 2026 21:49
9bc15d6 to
cbef5a5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Foundation for typed ref resolution by external read-only consumers (the language server):
block_schema_cache(migration 015): on every successful run that carries an alias, the result-save path derives the structural skeleton of the response JSON (objects keep keys, arrays keep one sampled element, scalars become type names — no data stored) and upserts it keyed by(file_path, alias). Rows carrycache_schema_version; readers treat a different version as a cache miss and the cache rebuilds on the next run instead of migrating in place.Shape derivation is pure and unit-tested; an integration test covers the upsert/read roundtrip including latest-wins overwrite and version filtering. Full crate suite: 1107 green.
Consumers
The language server reads shapes to resolve
{{alias.path}}fields (hover types, field completion, typo squiggles); the desktop app gains a refresh notification to the server in a follow-up.