Class DeleteSnapshotsOlderThanRequest
- Namespace
- Excalibur.EventSourcing.Oracle.Requests
- Assembly
- Excalibur.EventSourcing.Oracle.dll
Data request to delete snapshots older than a specific version.
public sealed class DeleteSnapshotsOlderThanRequest : DataRequestBase<IDbConnection, int>, IDataRequest<IDbConnection, int>, IDataRequest
- Inheritance
-
DeleteSnapshotsOlderThanRequest
- Implements
- Inherited Members
Constructors
DeleteSnapshotsOlderThanRequest(string, string, long, TenantScope, CancellationToken, string, string)
Initializes a new instance of the DeleteSnapshotsOlderThanRequest class.
public DeleteSnapshotsOlderThanRequest(string aggregateId, string aggregateType, long olderThanVersion, TenantScope scope, CancellationToken cancellationToken, string schema = "EXCALIBUR", string table = "EVENTSTORESNAPSHOTS")
Parameters
aggregateIdstringThe aggregate identifier.
aggregateTypestringThe aggregate type name.
olderThanVersionlongDelete snapshots with version less than this value.
scopeTenantScopeThe tenant scope. The tenant predicate is emitted unconditionally: an untenanted scope binds the reserved sentinel rather than omitting the term, so the statement is always restricted to a single partition's rows.
cancellationTokenCancellationTokenThe cancellation token.
schemastringThe schema name for the snapshot store table.
tablestringThe snapshot store table name.