Skip to main content

Crate sparrowdb_storage

Crate sparrowdb_storage 

Source

Modules§

csr
CSR (Compressed Sparse Row) forward and backward edge files. CSR (Compressed Sparse Row) edge storage.
edge_store
Edge delta log and CSR rebuild on checkpoint. Edge storage — delta log append + CSR rebuild on CHECKPOINT.
encryption
At-rest page encryption using XChaCha20-Poly1305. At-rest page encryption using XChaCha20-Poly1305.
fulltext_index
Simple inverted full-text index for CALL db.index.fulltext.queryNodes. Simple inverted full-text index for SparrowDB.
maintenance
CHECKPOINT and OPTIMIZE maintenance operations. Maintenance operations: CHECKPOINT and OPTIMIZE.
metapage
Dual-metapage codec for catalog.bin.
node_store
Node property column storage. Node property storage.
property_index
In-memory B-tree property equality index (SPA-249). In-memory B-tree property equality index (SPA-249).
text_index
In-memory text search index for CONTAINS and STARTS WITH (SPA-251). In-memory text search index for CONTAINS and STARTS WITH predicates (SPA-251).
wal
WAL subsystem — codec, writer, and replay.

Structs§

PageStore
Page store: maps logical page IDs to on-disk locations, with optional at-rest encryption via EncryptionContext.

Functions§

crc32_of
Compute CRC32C (Castagnoli) of the entire buffer.
crc32_zeroed_at
Compute CRC32C (Castagnoli) of buf treating zeroed_offset..zeroed_offset+zeroed_len as all zeros. Used so CRC can be stored in the buffer itself (field is zeroed during calculation).