Class DlqStorage

Assembly: redb.Tsak.Core.dll

The dead-letter table and its statements. Lives on the same database and provider as the audit log
(); everything provider-specific — connection string, ADO provider, DDL
script, casts, paging — comes from the provider's .
Every statement except the insert is scoped to the node's cluster plus the entries written before
cluster isolation (, parameter ).

public static class DlqStorage

Inheritance

Object→DlqStorage

Methods

ClaimForReplaySql(AuditProvider)

Atomic replay claim: flips a single entry → , but only if it

public static string ClaimForReplaySql(AuditProvider provider)

CreateConnection(AuditProvider, string)

public static DbConnection CreateConnection(AuditProvider provider, string connectionString)

DeleteOlderThanSql()

Retention sweep. Cutoff computed in C#, passed as a parameter — no server-side date math.

public static string DeleteOlderThanSql()

DeleteOneSql(AuditProvider)

public static string DeleteOneSql(AuditProvider provider)

InsertSql(AuditProvider)

INSERT. Column list and parameter names are identical everywhere; the entry id is bound as text

public static string InsertSql(AuditProvider provider)

ResolveConnectionString(IConfiguration, AuditProvider)

public static string? ResolveConnectionString(IConfiguration configuration, AuditProvider provider)

ResolveProvider(IConfiguration)

Reuse the audit provider enum — the DLQ lives on the same database.

public static AuditProvider ResolveProvider(IConfiguration configuration)

ScriptResource(AuditProvider)

public static string ScriptResource(AuditProvider provider)

SelectOneSql(AuditProvider)

Full row for one entry (includes the serialized payload) — used by replay.

public static string SelectOneSql(AuditProvider provider)

SelectSql(AuditProvider)

Paged SELECT, newest-first, all filters optional.

public static string SelectSql(AuditProvider provider)

UpdateStatusSql(AuditProvider)

public static string UpdateStatusSql(AuditProvider provider)