Robert Jaros
08/12/2019, 4:09 PM.value("fieldName", v) for inserting using fluent API for R2DBC with v as nullable String? ? I have to check for null and use .nullValue("fieldName") instead. And it ruins the whole purpose of the fluent API.
https://docs.spring.io/spring-data/r2dbc/docs/1.0.0.M2/reference/html/#r2dbc.datbaseclient.fluent-api.insertsdeleuze
08/12/2019, 4:12 PMRobert Jaros
08/12/2019, 5:56 PMfun <T> DatabaseClient.GenericInsertSpec<T>.safeValue(field: String, value: Any?): DatabaseClient.GenericInsertSpec<T> =
if (value == null) {
this.nullValue(field)
} else {
this.value(field, value)
}Robert Jaros
08/12/2019, 6:06 PM