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

Add utility to initialize and cleanup the CQL keyspace [DATACASS-704] #874

spring-projects-issues opened this issue Nov 27, 2019 · 0 comments


Copy link

@spring-projects-issues spring-projects-issues commented Nov 27, 2019

Mark Paluch opened DATACASS-704 and commented

Keyspace initialization typically happens with Cluster and Session factory beans. In our XML config support, we can specify startup and shutdown CQL by referencing the actual CQL text. Doing so can require CDATA escaping. Besides the factory bean, there is no other possibility to run CQL statements and especially no way to run CQL from a resource.

We should add a DatabasePopulator along with a SessionFactoryInitializer to expose keyspace initialization functionality. It would also make sense to be able to specify startup/shutdown CQL in the XML config from a resource so we can reuse the script executor

Issue Links:

  • DATACASS-703 Move Keyspace initialization from CassandraClusterFactoryBean to CassandraCqlSessionFactoryBean

  • DATACASS-656 Upgrade to Cassandra Driver 4.3

Referenced from: commits bf3ea7a, 9ad8054, 1c1b828

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants