Getting Started
Introduction
SQLLoad loads data into your warehouse, and shows you how before it changes anything.
SQLLoad loads data into your warehouse, and shows you how before it changes anything.
| System | Source | Target |
|---|---|---|
| Postgres | ✓ (incl. CDC) | ✓ |
| Snowflake | ✓ | ✓ |
| BigQuery | beta | beta |
| Databricks | beta | beta |
| ClickHouse | ✓ one self-hosted server¹ | |
| DuckDB | ✓ | ✓ |
| MotherDuck | beta² | beta² |
| SQL Server, MySQL, MariaDB, OpenEdge and other databases through ODBC³ | ✓ | |
| Files | ✓ Parquet, CSV, JSON, NDJSON, Excel (xlsx), XML; gzip, zstd and ZIP; any file name through pattern (S3, local folder, SFTP) |
✓ Parquet, CSV (S3, local folder) |
| Google Sheets | ✓ | |
| HTTP APIs and Python | ✓ | |
| Kafka | ✓ into Snowflake, or (beta) Databricks or BigQuery, through the Kafka exporter |
¹ One server (no clusters, replicated or distributed tables), tested on 25.3, 25.8 and 26.10. ClickHouse Cloud is untested.
² Through a separate DuckDB 1.5 process: install sqlload[motherduck].
³ Tested with psqlODBC, Microsoft ODBC Driver 18 for SQL Server and MySQL Connector/ODBC; the
MariaDB and OpenEdge drivers are checked by hand. Others work if they describe prepared statements
and list tables: sqlload plan shows what they report.
See the connector matrix for every combination, and the Kafka exporter for streaming topics.
sqlload plan shows each table’s columns, write strategy and route before anything changes. Where
Snowflake or DuckDB can load files exactly by itself, the files never pass through SQLLoad. SQLLoad
is written in Rust; Python is needed only for Python sources.
$ sqlload copy orders/ duckdb://shop.duckdb#raw.orders✓ Plan complete 1 object to create, 1 to load (sqlload plan shows the tree)
created raw.orders 9 columnsloaded raw.orders 3 rows 0.0s
✓ Completed 1 loaded, 3 rows, 0.1s├── slowest raw.orders 0.0s└── peak memory 73.7 MiBWhat it does
Section titled “What it does”| Step | Command | Result |
|---|---|---|
| Check a project | sqlload debug |
Validates sqlload.toml and tests every connection. |
| Preview | sqlload plan |
Every table, column, type mapping, write strategy, route and cursor. Changes nothing. |
| Create tables | sqlload apply |
Creates or changes destination tables. Loads nothing. |
| Load | sqlload load |
Loads the selected tables, committing large loads along the way. |
| Copy one table | sqlload copy |
One table, once, between two connections or URIs. No sqlload.toml. |
| Check declarations | sqlload contract |
Compares declared columns with live tables, or adopts them. |
| Logged positions | sqlload logged-state |
Inspects or corrects the run log of state = "logged" tables. |
How it stays honest
Section titled “How it stays honest”- The live table is the schema. Each run reads the destination table’s columns, or the ones you declare, and diffs them. No copy is stored. See Contracts.
- Cursors come from the data. An incremental table continues from the destination’s maximum
of its
cursor_column. Only positions the data can’t carry, such as an API sync token, go in an opt-in run log. See Cursors and state. - No silent fallbacks. A load method that can’t be used, or files a warehouse can’t load
exactly, fail at
planwith the fix instead of taking a slower route.