MsSqlJournalOptionsType
Defined in: src/persistence/journals/MsSqlJournalOptions.ts:5
Connection options shared by all three SQL Server stores.
Extends
Section titled “Extends”MsSqlConnection.StoreSerializerOptionsBase
Properties
Section titled “Properties”autoCreateTables?
Section titled “autoCreateTables?”
readonlyoptionalautoCreateTables?:boolean
Defined in: src/persistence/journals/MsSqlJournalOptions.ts:11
Run the guarded CREATE TABLE statements on first use. Default: true.
eventsTable?
Section titled “eventsTable?”
readonlyoptionaleventsTable?:string
Defined in: src/persistence/journals/MsSqlJournalOptions.ts:7
Events table name. Default: events.
readonlyoptionalpool?:MsSqlPoolLike
Defined in: src/persistence/journals/MsSqlClient.ts:77
Pre-built pool — bypasses the lazy mssql import entirely. Use to share
ONE pool across the journal + snapshot + durable-state stores (see
registerMsSqlPlugins), or to inject a fake in tests.
Inherited from
Section titled “Inherited from”MsSqlConnection.pool
poolConfig?
Section titled “poolConfig?”
readonlyoptionalpoolConfig?:Record<string,unknown>
Defined in: src/persistence/journals/MsSqlClient.ts:71
mssql config object — { server, port, user, password, database, options: { encrypt, trustServerCertificate }, pool: { max } }. Takes
precedence over url.
Inherited from
Section titled “Inherited from”MsSqlConnection.poolConfig
serializer?
Section titled “serializer?”
readonlyoptionalserializer?:Serializer<unknown>
Defined in: src/persistence/storage/StoreSerializerOptions.ts:23
Custom payload serializer. When set, the store writes rows in the
self-describing __serialized__ framing (see PayloadCodec) instead
of the default tagged JSON; rows of both formats can coexist in one
stream, but reading a framed row back requires a serializer with the
same id to be configured.
Inherited from
Section titled “Inherited from”StoreSerializerOptionsBase.serializer
tagsTable?
Section titled “tagsTable?”
readonlyoptionaltagsTable?:string
Defined in: src/persistence/journals/MsSqlJournalOptions.ts:9
Tags join table name. Default: ${eventsTable}_tags.
readonlyoptionalurl?:string
Defined in: src/persistence/journals/MsSqlClient.ts:65
Connection string, e.g.
Server=host,1433;Database=app;User Id=sa;Password=…;Encrypt=true, or the
mssql://user:pass@host:1433/db URL form.
Inherited from
Section titled “Inherited from”MsSqlConnection.url
