Class AuditStorage

Assembly: redb.Tsak.Core.dll

The audit table and its statements. Everything provider-specific — connection string, ADO provider,
DDL script, casts, paging — comes from the provider's , so a statement is
written once and every provider gets its own spelling of it. The select and the retention sweep are
scoped to the node's cluster plus the entries written before cluster isolation
(, parameter ).

public static class AuditStorage

Inheritance

Object→AuditStorage

Methods

CreateConnection(AuditProvider, string)

Opens a raw connection — used by the schema initializers and the stores.

public static DbConnection CreateConnection(AuditProvider provider, string connectionString)

DeleteOlderThanSql()

Retention sweep. Identical on all three providers: the cutoff is computed in C# and

public static string DeleteOlderThanSql()

InsertSql(AuditProvider)

INSERT statement. This is the one statement of the audit log that runs through the redb.Route.Sql

public static string InsertSql(AuditProvider provider)

ProviderFactory(AuditProvider)

The backing .

public static DbProviderFactory ProviderFactory(AuditProvider provider)

ProviderInvariantName(AuditProvider)

ADO.NET invariant name, used to register the factory for redb.Route.Sql.

public static string ProviderInvariantName(AuditProvider provider)

ResolveConnectionString(IConfiguration, AuditProvider)

Connection string for the provider, read from the same names redb uses.

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

ResolveProvider(IConfiguration)

Resolves the configured provider from Tsak:Redb:Provider — the one place the setting is

public static AuditProvider ResolveProvider(IConfiguration configuration)

ScriptResource(AuditProvider)

Logical name of the embedded DDL script for the provider.

public static string ScriptResource(AuditProvider provider)

SelectSql(AuditProvider)

Paged SELECT, newest first. Filters are all optional and expressed as

public static string SelectSql(AuditProvider provider)