eighty4 / cquill Goto Github PK
View Code? Open in Web Editor NEWVersioned CQL migrations for Cassandra and ScyllaDB
License: MIT License
Versioned CQL migrations for Cassandra and ScyllaDB
License: MIT License
Developer workflows for adding new statements to a CQL file that's already been migrated to a local cassandra. There are two current approaches:
drop keyspace ...
with cqlsh
and rerun cquill migrate
Hibernate and Flyway supports dropping and recreating schemas for developer experience. This could be replicated with a --refresh
or --dev-refresh
flag on the migrate command.
I'm hesitant about introducing this as a param that could accidentally get ran against a production database. Another option would be to introduce a new command called dev
that would behave like migrate
with the extra step of removing the existing keyspaces.
The current CQL parsing before migrating a CQL file only separates statements, tracks line numbers and removes comments.
There are many enhancements that would benefit from generating an AST from a cql file before migrating. The primary benefit would be syntax validation before executing a query. This would reduce the chance of partially migrating a CQL file that would require manual cleanup.
Other potential enhancements include:
There's an ANTLR crate that could be used with the cql3.0 grammar on antlr/grammars but it would probably be more fun to code a parser.
Is it possible to embed migrations and run them at startup? Is this feature outside the scope of this repository?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.