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.
(Since version 3.0) Use the new Action-based API instead
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.
(Since version 3.0) Use the new Action-based API instead
A logical session of a
Database
. The underlying database connection is created lazily on demand.