mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 03:26:59 +03:00
14 lines
355 B
TypeScript
14 lines
355 B
TypeScript
export interface IDatabase {
|
|
init(): void;
|
|
|
|
prepare(type: QueryType, query: string, params: any[]): any;
|
|
|
|
get<TModel>(query: string, params: any[]): TModel;
|
|
getAll<TModel>(query: string, params: any[]): TModel[];
|
|
run(query: string, params: any[]): void;
|
|
|
|
exec(query: string): any;
|
|
}
|
|
|
|
export type QueryType = 'get' | 'all' | 'run';
|