An EventStore implementation that stores a direct-acyclic graph of content-addressable events.

Type Parameters

Hierarchy

Implements

Constructors

Properties

currentEventDeps: [K, V][] = []

Cache of event parents during a put/validate operation.

data: AppendOnlyAutoKeyMap<K, V> & Partial<AutoKeyMapBatch<K, V>>
getEventMeta: ((event) => undefined | EventMeta<K>) = ...

Type declaration

    • (event): undefined | EventMeta<K>
    • Returns given event metadata.

      Parameters

      • event: V

      Returns undefined | EventMeta<K>

headSet: {
    add(value, options?): unknown;
    addMany?(keys, options?): MaybeAsyncIterableIterator<undefined | Error>;
    delete(value, options?): unknown;
    deleteMany?(keys, options?): MaybeAsyncIterableIterator<undefined | Error>;
    has(value, options?): MaybePromise<boolean>;
    hasMany?(keys, options?): MaybeAsyncIterableIterator<boolean>;
    updateMany?(keys, options?): MaybeAsyncIterableIterator<undefined | Error>;
}

Type declaration

keyCodec: Codec<K, string>
queryPageSize: number = DEFAULT_BATCH_SIZE
useCache: boolean = false

Set to true to use cache.

Accessors

Methods

Generated using TypeDoc