riptide v0.5.0-beta8 Riptide.Store behaviour View Source
Riptide stores are where data can be written to and read from. This module provides a behavior that can be implemented to integrate any data store with Riptide. Regardless of the underlying store, Riptide consistently provides a tree data model
The following stores are available out of the box. Visit their
Riptide.Store.Composite
Riptide.Store.LMDB
Riptide.Store.Memory
Riptide.Store.Multi
Riptide.Store.Postgres
Riptide.Store.Riptide
Configuration
Stores can be assigned via configuration. Riptide supports specifying different stores for reads and for writes although typically you will configure the same for both:
config :riptide,
store: %{
read: {Riptide.Store.MyStore, option1: "test"},
write: {Riptide.Store.MyStore, option1: "test"}
}
Link to this section Summary
Functions
Initialize all configured stores
Apply mutation to configured write store. Does not trigger interceptors.
Apply mutation to specified store with opts. Does not trigger interceptors.
Processes query with configured read store. Does not trigger interceptors.
Processes query with specified store with opts. Does not trigger interceptors.
Stream data from configured read store.
Stream data from specified read store with opts.
Link to this section Functions
Initialize all configured stores
Apply mutation to configured write store. Does not trigger interceptors.
Apply mutation to specified store with opts. Does not trigger interceptors.
Processes query with configured read store. Does not trigger interceptors.
Processes query with specified store with opts. Does not trigger interceptors.
Stream data from configured read store.
Stream data from specified read store with opts.