I'm in the middle of upgrading my Play Framework application using slick 2.1.0 to play-slick 1.0.0 (which includes slick 3.0.0).
I'm having some problems understanding how transactions are handled.
Lets say I have the following piece of code:
db.withTransaction { implicit session =>
for (id <- ids) yield someTable.insert(SomeObject(id))
}
How do I do that in slick 3? I want all the objects to be inserted in one transaction. If one object fails to be inserted, none should be inserted.