Skip to content

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

Open
SantiagoPittella wants to merge 1 commit into
nextfrom
santiagopittella-prep-store-migration
Open

chore(sqlite-framework): add missing types to codec#2464
SantiagoPittella wants to merge 1 commit 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."

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.

1 participant