Skip to content

es cqrs.EventStoreOptionsFactory

Sclable CI edited this page Sep 11, 2024 · 198 revisions

Interface: EventStoreOptionsFactory

es-cqrs.EventStoreOptionsFactory

Implement this factory interface to create a options for the event store

Example:

class OptionsFactory implements EventStoreOptionsFactory {
  public async createEventStoreOptions() {
    return { logging: true }
  }
}

Table of contents

Methods

Methods

createEventStoreOptions

createEventStoreOptions(): EventStoreOptions | Promise<EventStoreOptions>

Returns

EventStoreOptions | Promise<EventStoreOptions>

Defined in

packages/es-cqrs/src/event-store/event-store-options.ts:36

Clone this wiki locally