ByPersistenceIdProjectionOptionsType
此内容尚不支持你的语言。
Defined in: src/persistence/projection/ProjectionOptions.ts:21
Options for a per-persistenceId projection. One cursor per pid.
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”E
Properties
Section titled “Properties”handle
Section titled “handle”
readonlyhandle: (event) =>void|Promise<void>
Defined in: src/persistence/projection/ProjectionOptions.ts:15
User handler — runs once per event. Must be idempotent.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void | Promise<void>
Inherited from
Section titled “Inherited from”ProjectionOptionsType.handle
liveOptions?
Section titled “liveOptions?”
readonlyoptionalliveOptions?:LiveQueryOptions
Defined in: src/persistence/projection/ProjectionOptions.ts:17
Tunables passed to the underlying live query.
Inherited from
Section titled “Inherited from”ProjectionOptionsType.liveOptions
readonlyname:string
Defined in: src/persistence/projection/ProjectionOptions.ts:9
Logical name — used as the offset-store key prefix.
Inherited from
Section titled “Inherited from”ProjectionOptionsType.name
offsetStore?
Section titled “offsetStore?”
readonlyoptionaloffsetStore?:OffsetStore
Defined in: src/persistence/projection/ProjectionOptions.ts:13
Where to persist the cursor. Default: in-memory (lost on restart).
Inherited from
Section titled “Inherited from”ProjectionOptionsType.offsetStore
persistenceId
Section titled “persistenceId”
readonlypersistenceId:string
Defined in: src/persistence/projection/ProjectionOptions.ts:22
readonlyquery:PersistenceQuery
Defined in: src/persistence/projection/ProjectionOptions.ts:11
The query layer (one of InMemoryQuery, SqliteQuery, …).
Inherited from
Section titled “Inherited from”ProjectionOptionsType.query
