Close this Session.
Close this 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 commited 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.
Create a new Slick Session wrapping the same JDBC connection, but using the given values as defaults for resultSetType, resultSetConcurrency and resultSetHoldability.
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.
A wrapper around the JDBC Connection's prepareInsertStatement method, that automatically closes the statement.
A wrapper around the JDBC Connection's prepareInsertStatement method, that automatically closes the statement.
A wrapper around the JDBC Connection's prepareStatement method, that automatically closes the statement.
A wrapper around the JDBC Connection's createStatement method, that automatically closes the statement.
(sessionDef: StringAdd).self
(sessionDef: StringFormat).self
(sessionDef: ArrowAssoc[SessionDef]).x
(Since version 2.10.0) Use leftOfArrow
instead
(sessionDef: Ensuring[SessionDef]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
A logical session of a
Database
. The underlying database connection is created lazily on demand.