Migrate the driver 3 query builder to driver 4
ProprietaryRewrites driver 3 QueryBuilder chains into the immutable driver 4 query builder: select().from(table) becomes selectFrom(table).all(), where(eq(column, value)) becomes whereColumn(column).isEqualTo(literal(value)), using(ttl(n)) becomes usingTtl(n), and the clauses are put in the order driver 4 wants them. A query used as a statement gets build(). A variable that is only used as a statement becomes a SimpleStatement; one that is added to later keeps the driver 4 stage it is built on and has each addition assigned back. Queries the recipe cannot follow are marked with a TODO.
io. moderne. cassandra. driver4. MigrateQueryBuildermod run . --recipe= io. moderne. cassandra. driver4. MigrateQueryBuilderInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.