Module Lib_databox.Store_client

Store_client provides the interface to interact with a databox store, for both drivers and apps.

Key-value store

type content_format = [
| `Json
| `Text
| `Binary
]

Type for content format to be written into a key-value store.

type content = [
| `Json of Ezjsonm.t
| `Text of string
| `Binary of string
]

Type for content to be written into a key-value store.

module type KV_SIG : sig ... end

Module type for the key-value store, the datasource_id could be read from a value of Store_datasource.meta

module KV : KV_SIG

A key-value store implementation which fulfills KV_SIG

Timeseries store

module type TS_SIG : sig ... end

Module type for timeeseries store, this type of store currently only takes data in JSON format, timestamps are in milliseconds since epoch time, the datasource_id could be read from a value of Store_datasource.meta

module TS : TS_SIG

A timeseries store implementation which fulfills TS_SIG