feat: add SQLite database and persistent task schema

This commit is contained in:
Mpho10111
2026-08-11 20:51:10 +02:00
parent 77fe7cfdac
commit 63833efb7a
4 changed files with 76 additions and 0 deletions

19
types/node-sqlite.d.ts vendored Normal file
View File

@@ -0,0 +1,19 @@
declare module "node:sqlite" {
export type RunResult = {
changes: number;
lastInsertRowid: number | bigint;
};
export class StatementSync {
all(...params: unknown[]): unknown[];
get(...params: unknown[]): unknown;
run(...params: unknown[]): RunResult;
}
export class DatabaseSync {
constructor(location?: string | URL, options?: Record<string, unknown>);
close(): void;
exec(sql: string): void;
prepare(sql: string): StatementSync;
}
}