Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.withTransaction{ implicit session =>
- .....
- }
- def executeInSlickTransaction[T](body: => T) = {
- val db = DataSource.getDb
- db.withTransaction{ implicit session =>
- body
- }
- }
- executeInSlickTransaction{
- ....
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement