Repository navigation
Version 2.11.0
·
94 commits
to master
since this release
Driver
Added
Row.toObject<T>()maps a row already in hand ontoT, asfetchObject<T>()maps one.
Changed
-
[BREAKING]
Map.toDataObject()is gone. Instead of the map, read the class withfetchObject<T>()or
Row.toObject<T>(), which also convert the values wheretoDataObjectonly checked their types. -
[BREAKING]
toDataMap()takes only a data class and raisesInvalidOperationException(INVALID_ARGUMENT)for
any other.ReflectionCache.getOrCreateDataObjectMetadatarefuses 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
oftoDataMap(), as it is read, where both failed.
Client
Added
TransactionPlanstarts 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.addandTransactionStepare gone: a step's terminal adds the step to the plan and returns
itsStepHandle.asStep()is called insidewith(plan) { }orplan.apply { }. -
A
StepHandleprints no step number, where it printed the index it was created at, which afteraddPlanis not
where its step sits. Failures name a step by where it sits in each plan.
Fixed
- Every step of a
TransactionPlanruns in the transactionexecuteTransactionPlanopened 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.