SqlEventLogServerUnencrypted.ts
SqlEventLogServerUnencrypted.ts overview
Section titled “SqlEventLogServerUnencrypted.ts overview”SQL-backed storage for unencrypted event-log servers.
This module provides the durable Storage implementation used by
EventLogServerUnencrypted when remote entries should be stored in a SQL
database and streamed back to clients by store sequence. It creates
dialect-specific tables for the server remote id, per-store sequence state,
plaintext entries, and session authentication bindings.
Since v4.0.0
Exports Grouped by Category
Section titled “Exports Grouped by Category”constructors
Section titled “constructors”makeStorage
Section titled “makeStorage”Creates unencrypted event-log server Storage backed by SQL.
Details
The implementation creates tables for the server remote id, store sequences, entries, and session authentication bindings, then persists and streams plaintext remote entries.
Signature
declare const makeStorage: (options?: { readonly entryTablePrefix?: string readonly remoteIdTable?: string readonly insertBatchSize?: number}) => Effect.Effect<EventLogServerUnencrypted.Storage["Service"], SqlError.SqlError, SqlClient.SqlClient | Scope.Scope>Since v4.0.0
layers
Section titled “layers”layerStorage
Section titled “layerStorage”Provides unencrypted server Storage using the SQL-backed implementation.
Signature
declare const layerStorage: (options?: { readonly entryTablePrefix?: string readonly remoteIdTable?: string readonly insertBatchSize?: number}) => Layer.Layer<EventLogServerUnencrypted.Storage, SqlError.SqlError, SqlClient.SqlClient>Since v4.0.0