Skip to content

refactor: snapshot storage now supports multiple databases per project#5

Open
radim wants to merge 12 commits intomasterfrom
snapshot-store-refactor
Open

refactor: snapshot storage now supports multiple databases per project#5
radim wants to merge 12 commits intomasterfrom
snapshot-store-refactor

Conversation

@radim
Copy link
Copy Markdown
Member

@radim radim commented May 1, 2026

The original PoC for DryRun counted with one database, but in reality a single project uses more than one database. The change continues in the migration from a single URL-hashed history table to a SnapshotStore abstraction keyed by (project_id, database_id).

Resolves #4

radim and others added 12 commits May 1, 2026 12:18
14 new tests in trait_tests module:
- put inserts/dedupes; isolation across (project_id, database_id)
- list ordering and TimeRange filtering (from inclusive, to exclusive)
- latest returns None or most recent summary
- get(Latest/At/Hash) including key-scoped hash lookup and error on miss
- delete_before returns affected count and is key-scoped
- legacy save_snapshot and trait put coexist without cross-contamination
- synthetic_db_url_hash deterministic and disjoint from real URL hashes

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@radim radim force-pushed the snapshot-store-refactor branch from 6967302 to c5e5523 Compare May 1, 2026 10:19
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.

Support multiple databases per project

1 participant