mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Add TS for dumpDatabase config
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user