Close this Session.
Close this Session.
Force an actual database session to be opened.
Force an actual database session to be opened. Slick sessions are lazy, so you do not get a real database connection until you need it or you call force() on the session.
Call this method within a withTransaction
call to roll back the current
transaction after withTransaction
returns.
Call this method within a withTransaction
call to roll back the current
transaction after withTransaction
returns.
Run the supplied function within a transaction.
Run the supplied function within a transaction. If the function throws an Exception
or the session's rollback()
method is called, the transaction is rolled back,
otherwise it is committed when the function returns.
Use this Session as the dynamicSession
for running the supplied thunk.
Use this Session as the dynamicSession
for running the supplied thunk.
(Since version 3.0) Use the new Action-based API instead