Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev mode that drops and recreates a keyspace for developer productivity #132

Open
eighty4 opened this issue Oct 6, 2023 · 0 comments
Open

Comments

@eighty4
Copy link
Owner

eighty4 commented Oct 6, 2023

Developer workflows for adding new statements to a CQL file that's already been migrated to a local cassandra. There are two current approaches:

  • Add new CQL files to migrate that will be merged into a single CQL file when development work is ready to be committed
  • Repeatedly 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant