File size: 425 Bytes
0a5bd33 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | declare module 'node:sqlite' {
export class DatabaseSync {
constructor(location: string, options?: { open?: boolean });
close(): void;
exec(sql: string): void;
prepare(sql: string): StatementSync;
}
export class StatementSync {
all(...params: unknown[]): unknown[];
get(...params: unknown[]): unknown;
run(...params: unknown[]): { changes: number; lastInsertRowid: number | bigint };
}
}
|