JdbcActionContext

slick.jdbc.JdbcBackend.JdbcActionContext

Attributes

Source:
JdbcBackend.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Concrete methods

def connection: Connection

The current JDBC Connection

The current JDBC Connection

Attributes

Source:
JdbcBackend.scala

Attributes

Source:
JdbcBackend.scala
override def session: Session

Attributes

Definition Classes
Source:
JdbcBackend.scala

Inherited methods

final def isPinned: Boolean

Check if the session is pinned. May only be called from a synchronous action context.

Check if the session is pinned. May only be called from a synchronous action context.

Attributes

Inherited from:
ActionContext
Source:
DBIOAction.scala
final def pin: Unit

Pin the current session. Multiple calls to pin may be nested. The same number of calls to unpin is required in order to mark the session as not pinned anymore. A pinned session will not be released at the end of a primitive database action. Instead, the same pinned session is passed to all subsequent actions until it is unpinned. Note that pinning does not force an actual database connection to be opened. This still happens on demand. May only be called from a synchronous action context.

Pin the current session. Multiple calls to pin may be nested. The same number of calls to unpin is required in order to mark the session as not pinned anymore. A pinned session will not be released at the end of a primitive database action. Instead, the same pinned session is passed to all subsequent actions until it is unpinned. Note that pinning does not force an actual database connection to be opened. This still happens on demand. May only be called from a synchronous action context.

Attributes

Inherited from:
ActionContext
Source:
DBIOAction.scala
final def unpin: Unit

Unpin this session once. May only be called from a synchronous action context.

Unpin this session once. May only be called from a synchronous action context.

Attributes

Inherited from:
ActionContext
Source:
DBIOAction.scala

Inherited fields

protected[BasicBackend] val useSameThread: Boolean

Whether to run all operations on the current thread or schedule them normally on the appropriate ExecutionContext. This is used by the blocking API.

Whether to run all operations on the current thread or schedule them normally on the appropriate ExecutionContext. This is used by the blocking API.

Attributes

Inherited from:
BasicActionContext
Source:
BasicBackend.scala