Add v_assetbundle_loaded_assets view; describe what a DB upgrade applied#8
Merged
Merged
Conversation
New analysis view v_assetbundle_loaded_assets: one row per (AssetBundle, loaded native object) it references — the exploded, per-asset companion to v_assetbundle_utilization. It reuses the same edge filter (native->native native_connection edges with to_index <> from_index), so the bundle's own native self-reference and its managed wrapper(s) are excluded. Mirrored in both the DuckDB and SQLite writers. Bump schema minor 2 -> 3 (view-only, upgradeable in place) and document the view, its columns, and the version row in docs/database-schema.md. The `upgrade` command now lists which schema versions were applied, via a new DatabaseSchemaInfo.Changelog / ChangesSince() that mirrors the doc version table. Wired into both the explicit `upgrade` command and the interactive SchemaGate prompt. Adds tests for ChangesSince plus a guard that the changelog always covers the current version. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
New analysis view v_assetbundle_loaded_assets: one row per (AssetBundle, loaded native object) it references — the exploded, per-asset companion to v_assetbundle_utilization. It reuses the same edge filter (native->native native_connection edges with to_index <> from_index), so the bundle's own native self-reference and its managed wrapper(s) are excluded. Mirrored in both the DuckDB and SQLite writers.
Bump schema minor 2 -> 3 (view-only, upgradeable in place) and document the view, its columns, and the version row in docs/database-schema.md.
The
upgradecommand now lists which schema versions were applied, via a new DatabaseSchemaInfo.Changelog / ChangesSince() that mirrors the doc version table. Wired into both the explicitupgradecommand and the interactive SchemaGate prompt. Adds tests for ChangesSince plus a guard that the changelog always covers the current version.