@eveble/eveble

Hierarchy

  • SnapshotStorage

Implemented by

Index

Methods

Methods

findById

findById(EventSourceableType: EventSourceableType, eventSourceableId: string | Stringifiable): Promise‹EventSourceable | undefined›

Parameters:

NameType
EventSourceableTypeEventSourceableType
eventSourceableIdstring | Stringifiable

Returns: Promise‹EventSourceable | undefined›

findById(EventSourceableType: EventSourceableType, eventSourceableId: string | Stringifiable): Promise‹EventSourceable | undefined›

Parameters:

NameType
EventSourceableTypeEventSourceableType
eventSourceableIdstring | Stringifiable

Returns: Promise‹EventSourceable | undefined›


save

save(eventSourceable: EventSourceable): Promise‹string | undefined›

Parameters:

NameType
eventSourceableEventSourceable

Returns: Promise‹string | undefined›

save(eventSourceable: EventSourceable): Promise‹string | undefined›

Parameters:

NameType
eventSourceableEventSourceable

Returns: Promise‹string | undefined›


update

update(eventSourceable: EventSourceable, lastSnapshot?: EventSourceable): Promise‹boolean›

Parameters:

NameType
eventSourceableEventSourceable
lastSnapshot?EventSourceable

Returns: Promise‹boolean›

update(eventSourceable: EventSourceable, lastSnapshot?: EventSourceable): Promise‹boolean›

Parameters:

NameType
eventSourceableEventSourceable
lastSnapshot?EventSourceable

Returns: Promise‹boolean›