#[non_exhaustive]#[repr(u8)]pub enum Namespace {
Show 17 variants
Meta = 0,
Vector = 1,
Graph = 2,
Crdt = 3,
LoroState = 4,
Spatial = 5,
Strict = 6,
Columnar = 7,
Kv = 8,
Array = 9,
ArrayOpLog = 10,
ArrayDelta = 11,
Fts = 12,
StrictHistory = 13,
GraphHistory = 14,
DocumentHistory = 15,
LatestVersion = 16,
}Expand description
Storage namespace. Each engine writes to its own namespace in the blob KV store, preventing key collisions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Meta = 0
Database metadata: schema version, config, Shape subscriptions.
Vector = 1
Vector engine: HNSW graph layers, vector data.
Graph = 2
Graph engine: CSR arrays, node/label interning tables.
Crdt = 3
CRDT deltas: unsent mutations awaiting sync.
LoroState = 4
Loro state snapshots: compacted CRDT state for fast cold-start.
Spatial = 5
Spatial engine: R-tree checkpoints, geohash indexes.
Strict = 6
Strict document engine: Binary Tuple rows keyed by PK.
Columnar = 7
Columnar engine: compressed segments, delete bitmaps, segment metadata.
Kv = 8
KV engine: direct key-value storage (bypasses Loro CRDT). Used when sync is disabled or for the local-only KV fast path.
Array = 9
Array engine: ND sparse arrays, catalog, manifests, segment bytes.
ArrayOpLog = 10
Array CRDT op-log: append-only ops awaiting sync + GC.
ArrayDelta = 11
Array sync pending queue: ops waiting for transport delivery.
Fts = 12
Full-text search engine: posting lists, doc-length maps, BM25 stats, fieldnorm blobs, segment bytes, and surrogate maps.
StrictHistory = 13
Bitemporal history table for strict document collections.
Keys: {collection}:{system_from_ms_8be}:{pk_bytes} — value is the
full Binary Tuple followed by an 8-byte big-endian system_to_ms
(u64::MAX = open / still-current at time of supersession).
GraphHistory = 14
Bitemporal history table for graph edge collections.
Keys: {collection}:{edge_id_8be}:{system_from_ms_8be} — value is
the MessagePack-encoded edge props followed by an 8-byte big-endian
system_to_ms (u64::MAX = current / not yet deleted).
DocumentHistory = 15
Bitemporal history table for schemaless document collections.
Keys: {collection}:{doc_id}\x00{system_from_ms:020} — value is
[tag:u8][valid_from_ms:i64 LE][valid_until_ms:i64 LE][body_msgpack...].
tag = 0x00 (live), 0xFF (tombstone), 0xFE (GDPR erased).
LatestVersion = 16
O(1) pointer to the currently-live DocumentHistory version.
Keys: {collection}:{doc_id} — value is the system_from_ms of the
live row encoded as a 20-digit zero-padded ASCII decimal (matching the
suffix used in DocumentHistory keys). Absent when no live version
exists (document never written, tombstoned, or GDPR-erased).
Written atomically alongside every DocumentHistory mutation so that
versioned_get_current can resolve the current version with one index
lookup + one history fetch instead of a full prefix scan.
Implementations§
Trait Implementations§
Source§impl Archive for Namespace
impl Archive for Namespace
Source§type Archived = ArchivedNamespace
type Archived = ArchivedNamespace
Source§type Resolver = NamespaceResolver
type Resolver = NamespaceResolver
Source§fn resolve(
&self,
resolver: <Self as Archive>::Resolver,
out: Place<<Self as Archive>::Archived>,
)
fn resolve( &self, resolver: <Self as Archive>::Resolver, out: Place<<Self as Archive>::Archived>, )
Source§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
serialize. Read moreimpl Copy for Namespace
Source§impl<'de> Deserialize<'de> for Namespace
impl<'de> Deserialize<'de> for Namespace
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Namespace
impl StructuralPartialEq for Namespace
Auto Trait Implementations§
impl Freeze for Namespace
impl RefUnwindSafe for Namespace
impl Send for Namespace
impl Sync for Namespace
impl Unpin for Namespace
impl UnsafeUnpin for Namespace
impl UnwindSafe for Namespace
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
Source§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
Archive, it may be
unsized. Read moreSource§fn archived_metadata(
&self,
) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
fn archived_metadata( &self, ) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<T, S> SerializeUnsized<S> for T
impl<T, S> SerializeUnsized<S> for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.