Skip to content

Version 2.11.0

Choose a tag to compare

@CaesarAugustus27 CaesarAugustus27 released this 13 Nov 17:56
· 94 commits to master since this release

Driver

Added

  • Row.toObject<T>() maps a row already in hand onto T, as fetchObject<T>() maps one.

Changed

  • [BREAKING] Map.toDataObject() is gone. Instead of the map, read the class with fetchObject<T>() or
    Row.toObject<T>(), which also convert the values where toDataObject only checked their types.

  • [BREAKING] toDataMap() takes only a data class and raises InvalidOperationException(INVALID_ARGUMENT) for
    any other. ReflectionCache.getOrCreateDataObjectMetadata refuses the same way.

Fixed

  • A private property of a data class's primary constructor is written as a composite attribute and goes into the map
    of toDataMap(), as it is read, where both failed.

Client

Added

  • TransactionPlan starts its own queries with the same builders a client hands out, so code that builds a plan
    needs no client. Such a query runs only as a step.

Changed

  • [BREAKING] plan.add and TransactionStep are gone: a step's terminal adds the step to the plan and returns
    its StepHandle. asStep() is called inside with(plan) { } or plan.apply { }.

  • A StepHandle prints no step number, where it printed the index it was created at, which after addPlan is not
    where its step sits. Failures name a step by where it sits in each plan.

Fixed

  • Every step of a TransactionPlan runs in the transaction executeTransactionPlan opened or joined, whichever
    client its query was built on. A step built on another client committed by itself, and a later failure did not
    roll it back.