Stores projections

Type Parameters

Hierarchy

Properties

agg: ((query) => Promise<AggResult<S>>)

Type declaration

    • (query): Promise<AggResult<S>>
    • Aggregates projection

      Parameters

      Returns Promise<AggResult<S>>

      aggregate results

commit: ((map, watermark) => Promise<ProjectionResults>)

Type declaration

    • (map, watermark): Promise<ProjectionResults>
    • Commits projection map with basic idempotence check

      Parameters

      • map: ProjectionMap<S>

        the projection map

      • watermark: number

        the new watermark - ignored when new watermark <= stored watermark

      Returns Promise<ProjectionResults>

      the projection results

dispose: Disposer
drop: (() => Promise<void>)

Type declaration

    • (): Promise<void>
    • Drops the store

      Returns Promise<void>

load: ((ids) => Promise<ProjectionRecord<S>[]>)

Type declaration

    • (ids): Promise<ProjectionRecord<S>[]>
    • Loads projection records by id

      Parameters

      • ids: string[]

        the record ids

      Returns Promise<ProjectionRecord<S>[]>

      the stored records by id

name: string
query: ((query) => Promise<ProjectionRecord<S>[]>)

Type declaration

seed: ((schema, indexes) => Promise<void>)

Type declaration

Generated using TypeDoc