baa-conductor

git clone 

baa-conductor / packages / d1-client / src
im_wower  ·  2026-03-29

node-shims.d.ts

 1declare module "node:sqlite" {
 2  export interface StatementRunResult {
 3    changes?: number;
 4    lastInsertRowid?: number | bigint;
 5  }
 6
 7  export class StatementSync {
 8    all(...params: unknown[]): unknown[];
 9    get(...params: unknown[]): unknown;
10    run(...params: unknown[]): StatementRunResult;
11  }
12
13  export class DatabaseSync {
14    constructor(path: string);
15    close(): void;
16    exec(query: string): void;
17    prepare(query: string): StatementSync;
18  }
19}