Database Migrations for ClickHouse
See the code
Houseplant is a CLI tool that helps you manage database migrations for ClickHouse.
Here's how you can manage your ClickHouse migrations.
$ houseplant init ✨ Project initialized successfully! $ houseplant generate "add events" ✨ Generated migration: ch/migrations/20240101000000_add_events.yml $ houseplant migrate:status Database: june_development ┏━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓ ┃ Status ┃ Migration ID ┃ Migration Name ┃ ┡━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩ │ up │ 20240101000000 │ add events │ └────────┴────────────────┴────────────────┘ $ houseplant migrate ✓ Applied migration 20241121003230_add_events.yml $ houseplant migrate:up VERSION=20241121003230 ✓ Applied migration 20241121003230_add_events.yml $ houseplant migrate:down VERSION=20241121003230 ✓ Rolled back migration 20241121003230_add_events.yml
You can install Houseplant using pip:
$ pip install houseplant
Houseplant uses the following environment variables to connect to your ClickHouse instance:
HOUSEPLANT_ENV: The current environmentCLICKHOUSE_HOST: Host address of your ClickHouse server (default: "localhost")CLICKHOUSE_PORT: Port number for ClickHouse (default: 9000)CLICKHOUSE_DB: Database name (default: "development")CLICKHOUSE_USER: Username for authentication (default: "default")CLICKHOUSE_PASSWORD: Password for authentication (default: "")CLICKHOUSE_SECURE: Enable secure connection via the secure flag of ClickHouse client (default: False)CLICKHOUSE_VERIFY: Enable certificate verifiaction verify flag of ClickHouse client (default: False)Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
462 followers · starred Dec 2024
Python
96.2%
Makefile
3.8%
Database Migrations for ClickHouse
See the code
Houseplant is a CLI tool that helps you manage database migrations for ClickHouse.
Here's how you can manage your ClickHouse migrations.
$ houseplant init ✨ Project initialized successfully! $ houseplant generate "add events" ✨ Generated migration: ch/migrations/20240101000000_add_events.yml $ houseplant migrate:status Database: june_development ┏━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓ ┃ Status ┃ Migration ID ┃ Migration Name ┃ ┡━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩ │ up │ 20240101000000 │ add events │ └────────┴────────────────┴────────────────┘ $ houseplant migrate ✓ Applied migration 20241121003230_add_events.yml $ houseplant migrate:up VERSION=20241121003230 ✓ Applied migration 20241121003230_add_events.yml $ houseplant migrate:down VERSION=20241121003230 ✓ Rolled back migration 20241121003230_add_events.yml
You can install Houseplant using pip:
$ pip install houseplant
Houseplant uses the following environment variables to connect to your ClickHouse instance:
HOUSEPLANT_ENV: The current environmentCLICKHOUSE_HOST: Host address of your ClickHouse server (default: "localhost")CLICKHOUSE_PORT: Port number for ClickHouse (default: 9000)CLICKHOUSE_DB: Database name (default: "development")CLICKHOUSE_USER: Username for authentication (default: "default")CLICKHOUSE_PASSWORD: Password for authentication (default: "")CLICKHOUSE_SECURE: Enable secure connection via the secure flag of ClickHouse client (default: False)CLICKHOUSE_VERIFY: Enable certificate verifiaction verify flag of ClickHouse client (default: False)Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
462 followers · starred Dec 2024
Python
96.2%
Makefile
3.8%