Add batch update support to JdbcClient - #37216
Conversation
|
This looks good for the purposes of #33843, thanks for all the efforts! We're considering inclusion in 7.1 M2. In terms of API naming, pretty much my only concern is the repetition of the "batch" term in a |
Introduce a fluent batch() operation on JdbcClient.StatementSpec that accumulates several sets of parameters - bound as positional or named parameters in the same fashion as a single update, separated by add() - and executes them as a single JDBC batch through update(). Batch updates previously required dropping down to JdbcTemplate or NamedParameterJdbcTemplate. Closes spring-projectsgh-33843 Signed-off-by: Jiří Krokviak <j.krokviak@gmail.com> Co-authored-by: Yanming Zhou <zhouyanming@gmail.com>
See spring-projectsGH-36944 Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
5d5d574 to
f63afc3
Compare
PR updated for renaming, please review @jhoeller |
See #36944