mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-12 10:12:11 +03:00
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.
33 lines
768 B
TypeScript
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>;
|
|
}
|