StreamingActionContext
slick.dbio.StreamingActionContext
An ActionContext with extra functionality required for streaming DBIOActions.
Attributes
- Source:
- DBIOAction.scala
- Graph
- Supertypes
- Known subtypes
An ActionContext with extra functionality required for streaming DBIOActions.
Emit a single result of the stream. Any Exception thrown by this method should be passed on to the caller.
Emit a single result of the stream. Any Exception thrown by this method should be passed on to the caller.
Get the Subscription for this stream.
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.
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.
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.