跳转到内容
简体中文

MariaDbSnapshotStoreOptionsType

此内容尚不支持你的语言。

Defined in: src/persistence/snapshot-stores/MariaDbSnapshotStoreOptions.ts:4

Connection options shared by the three MariaDB stores.

readonly optional autoCreateTables?: boolean

Defined in: src/persistence/snapshot-stores/MariaDbSnapshotStoreOptions.ts:10

Run CREATE TABLE IF NOT EXISTS on first use. Default: true.


readonly optional keepN?: number

Defined in: src/persistence/snapshot-stores/MariaDbSnapshotStoreOptions.ts:8

Keep this many snapshots per persistenceId; older ones pruned on save. Default: 3. <=0 keeps all.


readonly optional pool?: MariaDbPoolLike

Defined in: src/persistence/journals/MariaDbClient.ts:58

Pre-built pool — shares one pool across the three stores, or injects a fake in tests.

MariaDbConnection.pool


readonly optional poolConfig?: Record<string, unknown>

Defined in: src/persistence/journals/MariaDbClient.ts:56

createPool config object (host/user/password/database/…); takes precedence over url.

MariaDbConnection.poolConfig


readonly optional serializer?: 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.

StoreSerializerOptionsBase.serializer


readonly optional snapshotsTable?: string

Defined in: src/persistence/snapshot-stores/MariaDbSnapshotStoreOptions.ts:6

Snapshots table name. Default: snapshots.


readonly optional url?: string

Defined in: src/persistence/journals/MariaDbClient.ts:54

Connection URI passed straight to createPool, e.g. mariadb://user:pass@host:3306/db.

MariaDbConnection.url