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