chore(deps): bump redb to 4#73
Merged
Merged
Conversation
Move redb from 2 to 4 in the workspace table (local-store backend, engine only). One source change: redb 3 relocated begin_read onto a new ReadableDatabase trait, so local_store_redb.rs imports it. Every other call site (Database::create, TableDefinition, open_table, insert, remove, commit, get/value, range) is unchanged across the two majors, and the StorageError source variants are all still present. On-disk format note: redb 4 cannot open a database written by redb 2. This is a pre-release codebase with no persistent-data guarantees, so operators wipe the local-store directory on upgrade; no in-code migration path is added.
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.
Fifth in the staged dependency-modernisation series (after #68, #69, #70, #71, #72).
What
Bumps
redbfrom2to4(two majors) in[workspace.dependencies]. redb backs the per-module local-store; only the engine uses it.One source change
redb 3 introduced a
ReadableDatabasetrait and relocatedbegin_readonto it, solocal_store_redb.rsadds the import:Everything else is unchanged across 2 -> 4:
Database::create,TableDefinition,open_table,insert,remove,commit,get/value,range, and all fiveStorageErrorsource variants.begin_writestayed inherent.On-disk format
redb 4 cannot open a database file written by redb 2. This is a pre-release codebase with no persistent-data guarantees, so the accepted upgrade path is to wipe the local-store directory; no in-code migration is added. Flagging for the changelog.
Testing
Verified under nix:
cargo build -p nexum-engine --all-targets,clippy --all-targets -- -D warnings,cargo test -p nexum-engine(105 passed - all local-store CRUD, list_keys, namespace-isolation, persistence, and concurrent-stress tests). CI runs the full matrix.AI Assistance
Claude Code (Opus 4.8) used for the redb 2->4 API-migration analysis and verification.