Skip to content

chore(sqlite-framework): add missing types to codec - #2464

Merged
Mirko-von-Leipzig merged 3 commits into
nextfrom
santiagopittella-prep-store-migration
Aug 19, 2026
Merged

chore(sqlite-framework): add missing types to codec#2464
Mirko-von-Leipzig merged 3 commits into
nextfrom
santiagopittella-prep-store-migration

Conversation

@SantiagoPittella

Copy link
Copy Markdown
Collaborator

Summary

Groundwork for moving the store's queries off diesel (part of #2251).

  • Codec: adds the column types the store needs: BlockNumber, NoteTag, StorageSlotName, Felt, range-checked u8/u16/u32, and the remaining BLOB types. Each scalar reproduces the legacy SqlTypeConvert encoding exactly,asserted by tests value by value, since an encoding change would silently misread existing databases.
  • Test harness: sqlite::testing::TestConnection (behind the testing feature) hands out ReadTx/WriteTx synchronously, so migrated query tests stay sync instead of becoming async.

Changelog

changelog = "none"
reason    = "Internal change only."

Comment thread crates/db/src/sqlite/codec.rs Outdated
Comment thread crates/db/src/sqlite/codec.rs Outdated
Comment thread crates/store/src/db/migrations.rs
Comment thread crates/db/src/sqlite/testing.rs Outdated
@SantiagoPittella
SantiagoPittella force-pushed the santiagopittella-prep-store-migration branch from 21dd02f to 98659db Compare August 14, 2026 20:51
@SantiagoPittella
SantiagoPittella force-pushed the santiagopittella-prep-store-migration branch 3 times, most recently from 78c98c4 to 87d3372 Compare August 18, 2026 15:57
@SantiagoPittella
SantiagoPittella force-pushed the santiagopittella-prep-store-migration branch from 87d3372 to 38ebe97 Compare August 19, 2026 13:04
@Mirko-von-Leipzig
Mirko-von-Leipzig merged commit 3b7fc45 into next Aug 19, 2026
28 checks passed
@Mirko-von-Leipzig
Mirko-von-Leipzig deleted the santiagopittella-prep-store-migration branch August 19, 2026 13:56
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