Module terminus_store::store::sync[][src]

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

SyncNamedGraph

A named graph in terminus-store.

SyncStore

A store, storing a set of layers and database labels pointing to these layers.

SyncStoreLayer

A layer that keeps track of the store it came out of, allowing the creation of a layer builder on top of this layer.

SyncStoreLayerBuilder

A wrapper over a SimpleLayerBuilder, providing a thread-safe sharable interface.

Functions

open_sync_directory_store

Open a store that stores its data in the given directory.

open_sync_memory_store

Open a store that is entirely in memory.