I looked at this example:
suspend fun save(user: User)=
client.insert().into<User>().table("users").using(user).await()
This works fine. I wanted to use the batch insert method:
https://docs.spring.io/spring-data/r2dbc/docs/1.0.x/reference/html/#reference, section 11.7.2. Inserting Data
using (Publisher) used to accept a stream of objects to insert.
so I tried with:
client.insert().into<User>().table("users").using(Flux.fromIterable(user)).await()
but that did not do anything. Why is that and how should this be written to work?