https://github.com/nicola-strappazzon/dacfy
Data as Code for ClickHouse
https://github.com/nicola-strappazzon/dacfy
cli clickhouse data-as-code
Last synced: 29 days ago
JSON representation
Data as Code for ClickHouse
- Host: GitHub
- URL: https://github.com/nicola-strappazzon/dacfy
- Owner: nicola-strappazzon
- License: gpl-3.0
- Created: 2025-07-27T22:52:41.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-09-09T22:49:13.000Z (6 months ago)
- Last Synced: 2025-09-09T23:44:29.516Z (6 months ago)
- Topics: cli, clickhouse, data-as-code
- Language: Go
- Homepage:
- Size: 176 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 39
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dacfy | Data as Code for ClickHouse
[](https://github.com/nicola-strappazzon/dacfy/actions/workflows/test.yaml)
[](https://goreportcard.com/report/github.com/nicola-strappazzon/dacfy)
A simple way to use pipelines for data transformation: define your databases, tables, materialized views, and **populate** or **backfill** them, all in a single step using a YAML file. Then, deploy everything from the terminal and rollback just as easily, without effort or added complexity. Of course, with this tool you can use it to versioning code, integrate it into a CI/CD, and maybe more.
To understand exactly what this tool does, I’ve included a series of curated [examples](https://github.com/nicola-strappazzon/cht/tree/main/examples) that have been reorganized to help you grasp how it works much more clearly.
## Install on macOS
Using [Homebrew](https://brew.sh/):
```bash
brew install nicola-strappazzon/tap/dacfy
```
## Install using go
If you have Go installed, you can install the dacfy binary like this:
```bash
go install github.com/nicola-strappazzon/dacfy@latest
```
The binary will be placed in your `GOBIN` directory, which defaults to `~/go/bin`. Depending on how Go is installed, this directory may or may not be in your `PATH`.
## Install on Linux - DEB
This method works on Debian, Ubuntu, and related distributions. The example below is for Intel/AMD systems. For ARM architectures, replace "amd64" with "arm64" in both commands.
```bash
curl -LO https://github.com/nicola-strappazzon/dacfy/releases/latest/download/dacfy_amd64.deb
sudo apt install ./dacfy_amd64.deb
```
## Install on Linux - RPM
This method works on RHEL, CentOS, Fedora, Amazon Linux, SUSE, Mandriva, Oracle Linux, and similar distributions. The example below is for Intel/AMD systems. For ARM architectures, replace "amd64" with "arm64" in both commands.
```bash
curl -LO https://github.com/nicola-strappazzon/dacfy/releases/latest/download/dacfy_amd64.rpm
sudo rpm -Uvh dacfy_amd64.rpm
```
## Install on Windows
A Windows build is currently unavailable, but the Linux build works fine under WSL.
> [!WARNING]
> This project is under active development and may be unstable. Use at your own risk.