Skip to content

duccltd/clickhouse-migrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clickhouse-migrator

Note: Still under development

Rust library for running and versioning clickhouse migration files.

This is currently compatible with the latest version (21.9) of clickhouse.

Installation

N/A

Usage

clickhouse-migrate [command]

clickhouse-migrate [command] help

Commands

Setup

Create a new config

clickhouse-migrate setup init

View the current config setup

clickhouse-migrate setup view

Set up fdb cluster file

clickhouse-migrate setup set --uri http://localhost:8083 --migrations ./migrations

Migrate

Creating a migration

Creating a migration with a name

RUST_LOG=info clickhouse-migrate migrate make --name "name of my migration"

Running the latest set of migrations

RUST_LOG=info clickhouse-migrate migrate latest

Currently known to be unsupported

  • Will always create a new configuration and wont check if there is one present
  • Needs a way to revert a migration, no down functionality

About

A migration tool for ClickhouseDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages