Skip to content
// EFFECT DAYS 2026

SqlEventLogServerUnencrypted unstable

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.

2 exports Since v4.0.0 Source

Constructors

makeStorage

unstable
Since v4.0.0

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. Writes reach changes subscribers once the outermost SQL transaction commits, including caller-owned transactions, and are dropped if it rolls back.

Gotchas

Concurrent caller-owned transactions can publish writes out of sequence order.

Signature

declare const makeStorage: (...args: [_options?: StorageOptions]) => Effect

Layers

Since v4.0.0

Provides unencrypted server Storage using the SQL-backed implementation.

Signature

declare function layerStorage(options?: StorageOptions): Layer<Storage, SqlError, SqlClient>