MariaDbSnapshotStoreOptions
此内容尚不支持你的语言。
Defined in: src/persistence/snapshot-stores/MariaDbSnapshotStore.ts:13
Connection options shared by the three MariaDB stores.
Extends
Section titled “Extends”Properties
Section titled “Properties”autoCreateTables?
Section titled “autoCreateTables?”
readonlyoptionalautoCreateTables?:boolean
Defined in: src/persistence/snapshot-stores/MariaDbSnapshotStore.ts:19
Run CREATE TABLE IF NOT EXISTS on first use. Default: true.
keepN?
Section titled “keepN?”
readonlyoptionalkeepN?:number
Defined in: src/persistence/snapshot-stores/MariaDbSnapshotStore.ts:17
Keep this many snapshots per persistenceId; older ones pruned on save. Default: 3. <=0 keeps all.
readonlyoptionalpool?:MariaDbPoolLike
Defined in: src/persistence/journals/MariaDbClient.ts:57
Pre-built pool — shares one pool across the three stores, or injects a fake in tests.
Inherited from
Section titled “Inherited from”poolConfig?
Section titled “poolConfig?”
readonlyoptionalpoolConfig?:Record<string,unknown>
Defined in: src/persistence/journals/MariaDbClient.ts:55
createPool config object (host/user/password/database/…); takes precedence over url.
Inherited from
Section titled “Inherited from”snapshotsTable?
Section titled “snapshotsTable?”
readonlyoptionalsnapshotsTable?:string
Defined in: src/persistence/snapshot-stores/MariaDbSnapshotStore.ts:15
Snapshots table name. Default: snapshots.
readonlyoptionalurl?:string
Defined in: src/persistence/journals/MariaDbClient.ts:53
Connection URI passed straight to createPool, e.g. mariadb://user:pass@host:3306/db.