/** * SQLiteConnector — SQLite database resource via sql.js (WASM). * Not mountable. Custom operations: query, schema, execute. * * Uses sql.js — SQLite compiled to WebAssembly. Runs on Node, Bun, and * browsers without native compilation or platform-specific binaries. * * Requires `sql.js` as an optional peer dependency. * * `options.path` is declaration-supplied, so a `.db` file under the workspace is * plausible configuration — which puts it on the rclone FUSE mount inside the * agent container. Both the load and the flush are therefore async and * deadline-bounded: a synchronous read/write against a wedged mount parks the * whole event loop in an uninterruptible kernel wait (issue #454). */ import type { ConnectContext, ConnectorDeclaration, ConnectorHandle, ToolFace } from "@skaile/workspaces/connectors"; import { AbstractConnector } from "@skaile/workspaces/connectors"; /** * Connector for SQLite databases via sql.js (WASM). Supports in-memory and file-backed databases. * Provides query, schema inspection, and execute operations. Requires the `sql.js` optional peer dependency. * @docLink packages/factory-assets/concepts#sqlite-connector */ export declare class SQLiteConnector extends AbstractConnector { readonly name = "sqlite"; tools: ToolFace; constructor(); connect(declaration: ConnectorDeclaration, ctx: ConnectContext): Promise; disconnect(handle: ConnectorHandle): Promise; private db; /** sql.js operates in-memory — flush to disk explicitly. Best-effort, but no * longer silent: a dropped flush on a wedged mount is lost data, so it warns. */ private saveToDisk; /** Run a query that returns rows. sql.js uses stmt.getAsObject() pattern. */ private queryRows; /** Run a statement that modifies data. Returns changes count. */ private runStmt; private _read; private _list; private _search; private _describeOperations; private _executeOp; } /** * Creates a new SQLiteConnector instance. * @returns Configured SQLiteConnector ready to be registered in the connector registry. * @docLink packages/factory-assets/api-reference#sqlite-connector-factory */ export declare function createConnector(): SQLiteConnector; //# sourceMappingURL=adapter.d.ts.map