db-migrate-cassandra
Cassanda migration using CQLSH for node DB migration
This module is based on node-db-migrate to support migration for Cassandra database, using node cassadnra-driver. This has to be installed as a dependency for db-migrate.
Installation
npm install db-migrate
npm install db-migrate-cassandra
Usage
Set up your database.json as mentoned in database.json.example
Supported Migrations
- Create Tableexports {db;
};
Supports multiple parimary keys
```js
'primary_key': '(name, age)'
-
Drop Table
exports {db;}; -
Add new column
exports {db;}; -
Drop existing column
exports {db;}; -
Rename a column
exports {db;}; -
Change column type
exports {db;};
TODOs
- This module is built using
cassandra-driver
need to add support for creating new keyspace.
Contribution
- Fork the repository
- Build the feature
- Add tests
- Raise a pull request