Expand description
oxistore-core — Pure Rust storage primitives for OxiStore.
This crate provides the foundational traits and error types shared across all OxiStore backends. It is intentionally dependency-free.
§Key Traits
KvStore— key-value store with reads, writes, range scans, transactions, and snapshots.KvTxn— explicit write transaction (commit / rollback).KvSnapshot— point-in-time read-only view.ColumnarStore— stub for M2+ columnar storage.BlobStore— stub for M4+ blob storage.
Structs§
- Store
Config - Backend-agnostic configuration for opening a store.
- Store
Metrics - Runtime statistics for a store (reads, writes, cache hits, etc.).
Enums§
- Store
Error - Errors that can be returned by any OxiStore backend.
Traits§
- Blob
Store - Marker trait for blob stores that is compatible with
oxistore-blob::BlobStore. - Columnar
Store - Stub trait for M2+ columnar store — defined here so facade re-exports remain stable.
- KvSnapshot
- A point-in-time read-only view of the store obtained from
KvStore::snapshot. - KvStore
- Core key-value store trait.
- KvTxn
- An explicit write transaction obtained from
KvStore::transaction.
Functions§
- ensure_
parent_ dir - Ensure the path’s parent directory exists, creating it if necessary.
- expiry_
epoch_ millis - Encode a TTL as an expiry unix-epoch-milliseconds
u64. - is_
expired - Return
trueif an epoch-milliseconds timestamp is in the past. - prefix_
upper_ bound - Compute the exclusive upper-bound key for a prefix scan.