comeara / pillar

Pillar manages migrations for your Cassandra data stores.
https://github.com/comeara/pillar
MIT License
111 stars 64 forks source link

support copy command #44

Open lucasRogerioOliveira opened 7 years ago

lucasRogerioOliveira commented 7 years ago

Support 'copy' command.

Actually, cassandra doesn't support rename table name, and to rename a table we need:

Example: -- description: recreate foobar table -- authoredAt: lucasoliveiracampos -- up:

-- stage: 1 copy foobar to 'foobar_2017_08_19_11_17_00_data.csv';

-- stage: 2 drop table foobar;

-- stage: 3 create table foobar ( foo text, bar bigint, primary key ((foo)) );

-- stage: 4 copy foobar from 'foobar_2017_08_19_11_17_00_data.csv';

-- down: