SQL workflow tool for BigQuery, PostgreSQL, Supabase, and MySQL/MariaDB.
SQLAnvil is an open-source fork of Dataform OSS (Apache 2.0), extended with first-class PostgreSQL, Supabase, and MySQL/MariaDB support. Define your data transformations in SQLX, have SQLAnvil compile them to idiomatic SQL, and run them against your warehouse — all from the CLI.
- BigQuery — partitioning, clustering, labels, materialized views,
MERGE-based incremental upserts - PostgreSQL — idiomatic DDL: native partitioning,
INSERT ... ON CONFLICTupserts, btree/gin/gist/brin indexes, tablespaces, fillfactor - Supabase — everything Postgres, plus RLS policies, Realtime publications, pgvector indexes, Supabase Wrappers (FDW)
- MySQL / MariaDB — one adapter validated against both: CTAS tables,
ON DUPLICATE KEY UPDATEupserts, the fullmysql: {}config block (engine/charset/collation, secondary indexes incl.FULLTEXT/SPATIAL, native partitioning), matview emulation
| Repo | What |
|---|---|
| sqlanvil | The core monorepo — compiler, CLI, and protobuf definitions |
| agent-skills | The sqlanvil-engineering-fundamentals Agent Skill — teaches coding agents the SQLAnvil dialect. Install with npx skills add SQLAnvil/agent-skills |
| docs | Reference docs and design documents, published at sqlanvil.com/docs |
SQLAnvil is built to be driven by coding agents (Claude Code, Codex, Cursor, Gemini CLI, and others):
-
agent-skills — the canonical
sqlanvil-engineering-fundamentalsAgent Skill. One install teaches any supporting agent the SQLAnvil authoring dialect (statement separators,postgres:/mysql:config blocks,ref()discipline, CLI verbs):npx skills add SQLAnvil/agent-skills
-
AGENTS.md in every project —
sqlanvil initandsqlanvil migrate-dataformscaffold a warehouse-tailoredAGENTS.md(plus aCLAUDE.mdbridge), so any agent working in the repo knows the dialect with zero setup. -
llms.txt — the docs site publishes an llms.txt index for agent retrieval.
- Website — sqlanvil.com
- Docs — sqlanvil.com/docs
- Agent Skill —
npx skills add SQLAnvil/agent-skills - Contributing — fork-and-PR; see each repo's
contributing.md
SQLAnvil is not affiliated with or endorsed by Google. "Dataform" is a trademark of Google LLC. SQLAnvil is licensed under the Apache License 2.0.