Class SaveSnapshotRequest
- Namespace
- Excalibur.EventSourcing.Postgres.Requests
- Assembly
- Excalibur.EventSourcing.Postgres.dll
Data request to save (upsert) a snapshot for an aggregate. Uses Postgres INSERT ... ON CONFLICT for atomic insert-or-update semantics.
public sealed class SaveSnapshotRequest : DataRequestBase<IDbConnection, int>, IDataRequest<IDbConnection, int>, IDataRequest
- Inheritance
-
SaveSnapshotRequest
- Implements
- Inherited Members
Constructors
SaveSnapshotRequest(ISnapshot, TenantScope, CancellationToken, string, string)
Initializes a new instance of the SaveSnapshotRequest class.
public SaveSnapshotRequest(ISnapshot snapshot, TenantScope scope, CancellationToken cancellationToken, string schema = "public", string table = "event_store_snapshots")
Parameters
snapshotISnapshotThe snapshot to save.
scopeTenantScopeThe tenant scope. An untenanted scope binds the reserved sentinel rather than omitting the term.
cancellationTokenCancellationTokenThe cancellation token.
schemastringThe schema name for the snapshot store table. Default: "public".
tablestringThe snapshot store table name. Default: "event_store_snapshots".