Pearl
Append only key-value blob storage on disk
Table of Contents
Overview
Storage scheme
Blob
Header
Structure:
Description
Field | Size, B | Description |
---|---|---|
magic_byte | 8 | marks pearl blob |
version | any | used to check compatibility |
flags | 1 | additional file props |
Record
Header
Structure:
Description
Field | Size, B | Description |
---|---|---|
magic_byte | 8 | separates records in blob |
key | (any) | key for record location and searching |
meta_size | 8 | meta length |
data_size | 8 | data length (without header) |
flags | 1 | additional record metadata |
blob_offset | 8 | record offset from blob start |
created | 8 | created timestamp |
data_checksum | 4 | data crc32 checksum (without header) |
header_checksum | 4 | header crc32 checksum (only record header) |
Rust Version
pearl
works on stable rust and above
$ rustup update
$ cargo build