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; maximumPrefix?: string;
redis?: redis.ClientOpts; redis?: redis.ClientOpts;
postgres?: PoolConfig; postgres?: PoolConfig;
dumpDatabase?: DumpDatabase;
} }
export interface WebhookConfig { export interface WebhookConfig {
@@ -62,3 +63,15 @@ export interface PostgresConfig {
enableWalCheckpointNumber: boolean; enableWalCheckpointNumber: boolean;
postgres: PoolConfig; postgres: PoolConfig;
} }
export interface DumpDatabase {
enabled: boolean;
minTimeBetweenMs: number;
exportPath: string;
tables: DumpDatabaseTable[];
}
export interface DumpDatabaseTable {
name: string;
order?: string;
}