TypeScript interface definitions for the DatabaseProvider abstraction used by Core and DuckDB backends.
// Source: https://github.com/webstonehq/seaquel | License: MIT | Copyright 2026 Webstone Technologies
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Database provider abstraction layer: the interface the managers use.
* `CoreProvider` implements it over Seaquel Core (desktop and web);
* `DuckDBProvider` over DuckDB-WASM (the demo and the browser tutorial).
*/
import type { ConnectParams } from "$lib/types/generated/ConnectParams";
/**
* What `connect` and `test` take: Core's `db.connect` params, a target
* (`{type:"saved",id}` or `{type:"form",form}`) plus the secrets the caller
* holds, a trusted SSH host key after the prompt, and SQLite's
* `createIfMissing`.
*/
export type ConnectRequest = ConnectParams;
/**
* Result of an execute operation (INSERT,
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key