Implement a “serverless” way to execute federated SQL across one or more SQLite and/or DuckDB databases without spawning per-database servers.
The core idea is to treat the local/discovered databases as queryable sources and generate a temporary SQL script that:
- ATTACHes each discovered database under a deterministic schema name (based on pattern, filename, or catalog identity).
- Optionally applies guardrails (read-only mode, deny DDL/DML by default, allowlist statements) to make execution “proxy safe”.
- Executes a user-supplied query (or a file of queries) against the attached schemas, letting SQLite/DuckDB handle the cross-database proxying via ATTACH semantics through either direct SQL or an MCP or "Skills".
Scope to explore:
Add safety defaults:
Acceptance criteria:
- Can discover multiple databases and attach them under predictable schema names using same identifiers as proxy pass rules.
- Can use either naming or tokenization to group by tenants or other scopes
- Can run a query that references one attached database, or joins across multiple attached schemas, without starting any server.
- Generated SQL (ATTACH + query) can be emitted to a file for inspection/reproducibility.
- Safety defaults prevent accidental modification of source databases unless explicitly overridden.
Implement a “serverless” way to execute federated SQL across one or more SQLite and/or DuckDB databases without spawning per-database servers.
The core idea is to treat the local/discovered databases as queryable sources and generate a temporary SQL script that:
Scope to explore:
Add safety defaults:
Acceptance criteria: