Another concern is that bind(params -> …) looks too implicit in terms of name, could confuse users versus bindValues(List<?> source) which has a totally different meaning.
Depending on how the implementation goes, we may create a follow-up issue for a similar feature in JdbcClient.
As discussed in #27229, this issue intends to add support to batch operations support to R2DBC
DatabaseClient
.The starting point is
bind(params -> …)
as proposed in this comment of the PR, but we should also support iterating over a collection without requiring a wrapper class or anAtomicReference
.Another concern is that
bind(params -> …)
looks too implicit in terms of name, could confuse users versusbindValues(List<?> source)
which has a totally different meaning.Depending on how the implementation goes, we may create a follow-up issue for a similar feature in
JdbcClient
.