Uploaded image for project: 'Spring Data for Apache Cassandra'
  1. Spring Data for Apache Cassandra
  2. DATACASS-704

Add utility to initialize and cleanup the CQL keyspace

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 3.0 M1 (Neumann)
    • Component/s: SessionFactory
    • Labels:
      None
    • Last commented by a User:
      true
    • Sprint:
      Moore SR2

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mp911de Mark Paluch
              Reporter:
              mp911de Mark Paluch
              Last updater:
              Mark Paluch
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                42 weeks, 4 days ago