Files
OmniRoute/src/types/sqljs.d.ts
Diego Rodrigues de Sa e Souza d0396c200d Release v3.8.31 (#4377)
Release v3.8.31 — see CHANGELOG.md [3.8.31] for full notes and contributors.

Merged over known non-blocking reds (all correctness gates green): Integration Tests (2/2) is env/flaky (polls a real upstream batch that did not complete in the poll window); SonarQube/SonarCloud is the advisory server-side new-code quality gate. Unit (8 shards), Coverage, Node 22/24/26, Lint, PR Test Policy, Quality Ratchet, Docs-Strict, Quality-Extended and all 4 CodeQL analyses are green.
2026-06-20 14:55:24 -03:00

33 lines
768 B
TypeScript

declare module "sql.js" {
export interface SqlJsStatement {
bind(values: unknown[]): void;
step(): boolean;
getAsObject(): Record<string, unknown>;
free(): void;
}
export interface SqlJsResult {
columns: string[];
values: unknown[][];
}
export interface SqlJsDatabase {
prepare(sql: string): SqlJsStatement;
run(sql: string): void;
exec(sql: string): SqlJsResult[];
export(): Uint8Array;
close(): void;
getRowsModified(): number;
}
export interface SqlJsStatic {
Database: new (data?: Uint8Array) => SqlJsDatabase;
}
export interface SqlJsInitOptions {
locateFile?: (fileName: string) => string;
}
export default function initSqlJs(options?: SqlJsInitOptions): Promise<SqlJsStatic>;
}