The instantiation options for a state database.

interface IOptions<T> {
    connector?: IDataConnector<string, string, string, string>;
    transform?: Promise<DataTransform<T>>;
}

Type Parameters

  • T extends ReadonlyPartialJSONValue = ReadonlyPartialJSONValue

Properties

connector?: IDataConnector<string, string, string, string>

Optional string key/value connector. Defaults to in-memory connector.

transform?: Promise<DataTransform<T>>

An optional promise that resolves with a data transformation that is applied to the database contents before the database begins resolving client requests.