Add TS for dumpDatabase config

This commit is contained in:
Nanobyte
2021-03-21 22:59:16 +01:00
parent 84b86bb6a1
commit 514ea03655

View File

@@ -38,6 +38,7 @@ export interface SBSConfig {
maximumPrefix?: string;
redis?: redis.ClientOpts;
postgres?: PoolConfig;
dumpDatabase?: DumpDatabase;
}
export interface WebhookConfig {
@@ -61,4 +62,16 @@ export interface PostgresConfig {
createDbIfNotExists: boolean;
enableWalCheckpointNumber: boolean;
postgres: PoolConfig;
}
}
export interface DumpDatabase {
enabled: boolean;
minTimeBetweenMs: number;
exportPath: string;
tables: DumpDatabaseTable[];
}
export interface DumpDatabaseTable {
name: string;
order?: string;
}