Skip to content

JamesTTTT/Casscal-Cassandra-DB-Migration-Tool

Repository files navigation

Casscal - (Work in progress)

A Cassandra database migration tool

This is a tool i have created for myself to easily simplify Casssandra database migration

The tool is entirely written in Scala 3.4

Install tool

  1. git clone [email protected]:JamesTTTT/Casscal-Cassandra-DB-Migration-Tool.git
  2. cd Casscal-Cassandra-DB-Migration-Tool
  3. sbt clean assembly
  4. chmod +x casscal
  5. sudo mv casscal /usr/local/bin/
  6. Running the program in CLI: casscal [options]

Flags

Flag (Short) Flag (Long) Description Input Type
-u --username Username for Cassandra authentication String
-p --password Password for Cassandra authentication String
-k --keyspace Keyspace to connect to in Cassandra String
-o --port Port to connect to Cassandra Int
None --contactPoints Contact points for Cassandra, comma-separated String
None --datacenter Local datacenter for Cassandra connection String
-l --migrationFilePath Location for migrations folder String

Usage Example

Run the casscal application with the following command, replacing each argument with your specific values:

casscal --username myUsername --password myPassword --keyspace myKeyspace --port 9042 --datacenter myDatacenter --migrationFilePath /path/to/migrations
casscal --contactPoints "127.0.0.1,192.168.1.2" -u username -p password -k keyspace -o 9042 -l "/path/to/migrations"

About

Written in Scala 3.4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published