Module spacetimedb_table::blob_store
source · Expand description
Provides the interface BlobStore
that tables use to talk to
a blob store engine for large var-len objects.
These blob objects are referred to by their BlobHash
,
which is currently defined through BLAKE3 on the bytes of the blob object.
Two simple implementations are provided, primarily for tests and benchmarking.
NullBlobStore
, a blob store that always panics. Used when ensuring that the blob store is unreachable in a scenario.HashMapBlobStore
, a blob store backed by aHashMap
that refcounts blob objects. It is not optimize and is mainly intended for testing purposes.
Structs§
- The content address of a blob-stored object.
- A blob store that is backed by a hash map with a reference counted value. Used for tests when you need an actual blob store.
- An error that signifies that a
BlobHash
wasn’t associated with a large blob object. - A blob store that panics on all operations. Used for tests when you want to ensure that the blob store isn’t used.
Traits§
- The interface that tables use to talk to the blob store engine for large var-len objects.