Storage
Types
Represents a factory interface for creating storage instances. The default implementation is InMemoryStorageFactory which stores data in memory
Default implementation for the storage module when configuring an XTDB node. Stores everything within in-process memory - a non-persistent option for storage.
Implementation for the storage module that persists data to the local file system, under the path directory.
Implementation for the storage module that persists data remotely within a specified objectStore,
Functions
The totalPartitions == 1 branch produces the same key-space as the pre-multi-partition layout, and must keep doing so — do not unify the two branches. An older version resolves against the unmarked root, so a single-partition database writing under parts/0/ would leave a rollback with nothing to read and a data migration to run at the worst possible moment. Avoiding a re-key of existing stores is the secondary benefit — blob stores have no mv primitive, so that means a full copy-and-delete sweep — but reversibility is the sharper reason. Only at N > 1 does the parts/<partition>/ grouping appear, and partition counts are immutable post-attach, so a store is one shape or the other for its whole lifetime and the two never collide.