跳转到内容
简体中文

migratingSnapshotAdapter

此内容尚不支持你的语言。

migratingSnapshotAdapter<S>(chain, opts?): SnapshotAdapter<S, unknown>

Defined in: src/persistence/migration/migratingAdapter.ts:59

Same as migratingAdapter but returns a SnapshotAdapter — useful when the same MigrationChain governs both events and the snapshot of derived state. Snapshots usually don’t need a rolling writeVersion (snapshots are produced by one writer, the actor), but the helper is symmetric for the user’s convenience.

S

MigrationChain<S>

number

SnapshotAdapter<S, unknown>