Migrate to the Apache Cassandra Java driver 4

Proprietary

Migrates Java code from the DataStax Java driver for Apache Cassandra 3.x (com.datastax.cassandra:cassandra-driver-core) to the Apache Cassandra Java driver 4 (org.apache.cassandra:java-driver-core). Cluster and Session become CqlSession, the cluster builder's options become driver configuration, statements become immutable, row accessors move to java.time, and the packages, exceptions and dependencies change. A module moves only when all of its code can: modules whose code the migration would leave on driver 3, such as code that uses the object mapper, custom codecs or policies, or calls without a driver 4 counterpart, are left alone and listed with the reason in the Modules left on driver 3 data table, and so are modules that also use Spring Data Cassandra 1.x or 2.x, which need driver 3. Modules that pass driver 3 objects to or from a module left alone, or share or are the build that gives it driver 3, stay on driver 3 with it, and while any code of a repository stays on driver 3, so do the modules that declare driver 3 without code that uses it. A build that has no driver 3, or gets it only through a module that stays on driver 3, is left as it is.

io.moderne.cassandra.driver4.MigrateToCassandraDriver4
mod run . --recipe=io.moderne.cassandra.driver4.MigrateToCassandraDriver4

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.