mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-12 06:27:10 +03:00
14 lines
333 B
TypeScript
14 lines
333 B
TypeScript
export interface QueryOption {
|
|
useReplica?: boolean;
|
|
forceReplica?: boolean;
|
|
}
|
|
|
|
export interface IDatabase {
|
|
init(): Promise<void>;
|
|
|
|
prepare(type: QueryType, query: string, params?: any[], options?: QueryOption): Promise<any | any[] | void>;
|
|
|
|
highLoad(): boolean;
|
|
}
|
|
|
|
export type QueryType = "get" | "all" | "run"; |