Module terminus_store::store::sync
source · Expand description
a synchronous version of the store API
Since not everyone likes tokio, or dealing with async code, this module exposes the same API as the asynchronous store API, only without any futures. This is done by wrapping all the async calls in a sync wrapper that runs on a tokio runtime managed by this module.
Structs§
- A named graph in terminus-store.
- A store, storing a set of layers and database labels pointing to these layers.
- A layer that keeps track of the store it came out of, allowing the creation of a layer builder on top of this layer.
- A wrapper over a SimpleLayerBuilder, providing a thread-safe sharable interface.
Functions§
- Open a store that stores its data in the given directory as archive files.
- Open a store that stores its data in the given directory.
- Open a store that is entirely in memory.
- Open a store that stores its data in the given directory as archive files.
- Trampoline function for calling the async api in a sync way.