Packages

t

slick.dbio

StreamingActionContext

trait StreamingActionContext extends ActionContext

An ActionContext with extra functionality required for streaming DBIOActions.

Source
DBIOAction.scala
Linear Supertypes
ActionContext, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StreamingActionContext
  2. ActionContext
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def emit(v: Any): Unit

    Emit a single result of the stream.

    Emit a single result of the stream. Any Exception thrown by this method should be passed on to the caller.

  2. abstract def subscription: Subscription

    Get the Subscription for this stream.

Concrete Value Members

  1. final def isPinned: Boolean

    Check if the session is pinned.

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

    Definition Classes
    ActionContext
  2. final def pin: Unit

    Pin the current session.

    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.

    Definition Classes
    ActionContext
  3. final def unpin: Unit

    Unpin this session once.

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

    Definition Classes
    ActionContext