ETL with DataTug
A visual builder and out-of-the-box runner for ETL.
Customers live in Postgres. Orders arrive as a CSV export. You need clean emails, one join, revenue per customer, and the result somewhere you can query it. DataTug is built for that job without glue code: the DataTug CLI runs pipelines with your own databases as sources today, and a visual designer to draw them is in development.
The job is small. The glue around it is not.
Most ETL is not a platform problem. It is one script: two connection strings, a file path, a loop that fixes emails, a join written by hand, and an insert at the end. It works until a column is renamed, the person who wrote it moves on, or someone asks where a number came from.
The steps are easy to say out loud: take customers from Postgres and orders from a CSV export, clean the emails, join, total the revenue per customer, and land the result in DuckDB. A tool should let you build exactly that, see every step, and run it again tomorrow.
Extract, transform, load: one picture
The same example as a pipeline. Each box is a step you can open; each arrow is a stream of records.
Extract
Your databases as sources
A saved query, a TugQL query or SQL becomes a source step. It reads through the same connections and access policies as a query you run by hand. Files such as a CSV export come in through standard OpenFlange pipes.
Transform
Pipes in any language
A pipe is a small step with declared inputs and outputs. Write it in SQL, R, Python or Starlark, or take a ready-made one. Cleaning emails is a few lines of Starlark; the join and the totals are SQL.
Load
Materialise as a dataset
The result is kept as a named dataset in a local DuckDB file, with a record of the pipeline, the run and the sources it came from. Query it with SQL, or join it with another dataset.
Built from OpenFlange pipes
A DataTug pipeline is not a private format. It is built from OpenFlange pipes, an open standard for small, typed steps and the pipelines that connect them.
Plain files in your project
Available
A pipe is a folder with one readable contract,
OPENFLANGE.md. A pipeline is apipeline.yaml. They live in your DataTug project, next to your saved queries, and go through code review like everything else.Blocks you do not have to write
The standard comes with a library of common steps: read a file, decode CSV, filter, rename, cast, merge. OpenFlange.com is the directory for finding more, and OpenFlange.dev is where you write and test your own.
What DataTug adds
Available
Your databases. The step that turns a DataTug query into a source,
builtin:datatug/query, exists only inside DataTug, because it uses DataTug’s connections and access policies. Everything downstream of it is portable.Pipes inside a query
A separate proposal lets a TugQL query call a pipe as a function: TugQL pipes. It is a proposed extension, in development, and not part of the published TugQL specification.
What you can use today
Besides running pipelines from the CLI, the extract half of the story works on its own, without pipelines.
Query several databases at once
Available
Connect PostgreSQL, MySQL, SQLite, BigQuery and more, and work across your sources in one project. The full list is on the supported databases page.
Join across databases
Available
One TugQL query can read from two databases and join the rows: cross-source joins.
Saved queries in Git
Queries are files in a repository, reviewed and versioned with your code. Open the live demo to see a real project, no account needed.
What DataTug is not
Saying no here keeps the rest of the page honest.
Not a scheduler
DataTug runs a pipeline when you ask it to. It has no cron, no retries policy and no backfills. If a pipeline must run every night, start it from the scheduler you already have.
Not a data warehouse
A pipeline dataset is a local DuckDB file for working results. It is not a governed, shared store, and it does not replace the warehouse you report from.
Not a connector catalogue
Sources are the databases and files DataTug already reads. There is no marketplace of hundreds of SaaS connectors, and no streaming or change-data-capture.
ETL across the ecosystem
One open standard, several ways in. Each page tells the same story from its own side.
DataTug: build and run
- DataTug.appVisual builder and runnerRun pipelines with your databases as sources; the visual designer is in development.You are here
- DataTug.ai ETL with your AI agentYour agent writes the pipes; free tools check what it wrote.
- DataTug.io ETL from the terminal, in GitPipelines as plain files in your project, run with one command.
OpenFlange: the standard and its tools
Start with the part that works
Explore a real project with live sample databases, then run a pipeline with the DataTug CLI.
