Skip to content
English

registerMsSqlPlugins

registerMsSqlPlugins(ext, options?): MsSqlPluginHandles

Defined in: src/persistence/journals/MsSqlPlugin.ts:41

One-shot registration of the SQL Server journal + snapshot store against the running PersistenceExtension, returning a ready-to-use DurableState store handle. Mirrors registerPostgresPlugins / registerMariaDbPlugins.

After this call, activate the journal + snapshot store via: actor-ts.persistence.journal.plugin = "actor-ts.persistence.journal.mssql" actor-ts.persistence.snapshot-store.plugin = "actor-ts.persistence.snapshot-store.mssql" either via HOCON or a { config: { … } } override.

Pass pool to share a single connection pool across all three stores (recommended when they target the same database). A shared pool is caller-owned: no store ends it, so close it yourself at shutdown.

PersistenceExtension

RegisterMsSqlPluginsOptions = {}

MsSqlPluginHandles