Table of Contents

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

snapshot ISnapshot

The snapshot to save.

scope TenantScope

The tenant scope. An untenanted scope binds the reserved sentinel rather than omitting the term.

cancellationToken CancellationToken

The cancellation token.

schema string

The schema name for the snapshot store table. Default: "public".

table string

The snapshot store table name. Default: "event_store_snapshots".