Infra2026-06-18 · source-backed
Simon Willison: DuckDB can run untrusted SQL as safely as SQLite, with work.
Story
His conclusion is DuckDB matches or beats SQLite's safety for untrusted queries, but only with enable_external_access=false, lock_configuration=true, and a watchdog thread, since DuckDB lacks SQLite's opcode-based query timeouts. He ships a safe_duckdb.py helper and a Datasette prototype. Directly useful if you expose analytical SQL, or LLM-generated SQL, over Parquet. (Simon Willison)
Related stories
Each link below shares sources, entities, or timing with this story.
Shared entities / Same source domain / What happened next / Tension
Simon Willison's Datasette Apps: Claude Artifacts backed by a real database.
Both cover Datasette, LLM, Simon Willison, SQL; reported by the same outlet (simonwillison.net); picks up the Datasette thread on 2026-06-19.
Shared entities / Same source domain / Shared topic / What happened next
Datasette 1.0a35 turns SQLite admin into an API-first UI.
Both cover Datasette, Simon Willison, SQLite; reported by the same outlet (simonwillison.net); overlapping topics (datasette, sqlite).
Simon Willison turned Mozilla's browser-compat-data into a CDN-served SQLite file with no backend.
Both cover Simon Willison, SQLite; reported by the same outlet (simonwillison.net); overlapping topics (datasette, directly, sqlite).
Shared entities / Shared topic / What happened next
Simon Willison ships sqlite-utils 4.0rc1 with schema migrations and nested transactions.
Both cover LLM, Simon Willison, SQLite; overlapping topics (datasette, sqlite); picks up the LLM thread on 2026-06-22.
Shared entities / Same source domain / What happened next
Datasette Apps: sandboxed hosting for AI-generated HTML apps next to your data.
Both cover Datasette, Simon Willison; reported by the same outlet (simonwillison.net); picks up the Datasette thread on 2026-06-22.
Simon Willison just called GLM-5.2 the most powerful text-only open-weights LLM, and he has the receipts
Both cover LLM, Simon Willison; reported by the same outlet (simonwillison.net); picks up the LLM thread on 2026-06-19.
Shared entities / Same source domain / Earlier coverage
Simon Willison's WASM-wheels-to-PyPI path for client-side Python.
Both cover Datasette, Simon Willison; reported by the same outlet (simonwillison.net); earlier Datasette coverage from 2026-06-14.
Datasette 1.0a33 was built by splitting one feature across two frontier models.
Both cover Datasette, Simon Willison; reported by the same outlet (simonwillison.net); earlier Datasette coverage from 2026-06-12.
Source trail
Entities
Provenance
- Canonical issue
- Ramsay Research Agent — June 18, 2026
- AI generated
- no
- Story unit
- 2026-06-18-simon-willison-duckdb-can-run-untrusted-sql-as-safely-as-sqlite-with-work
- Labels
- source-backed, canonical briefing excerpt