Packages

t

slick.jdbc

Invoker

trait Invoker[+R] extends AnyRef

Base trait for all statement invokers of result element type R.

Self Type
Invoker[R]
Source
Invoker.scala
Linear Supertypes
AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Invoker
  2. AnyRef
  3. 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 iteratorTo(maxRows: Int)(implicit session: SessionDef): CloseableIterator[R]

    Execute the statement and return a CloseableIterator of the converted results.

    Execute the statement and return a CloseableIterator of the converted results. The iterator must either be fully read or closed explicitly.

    maxRows

    Maximum number of rows to read from the result (0 for unlimited).

Concrete Value Members

  1. final def buildColl[C[_]](implicit session: SessionDef, canBuildFrom: Factory[R, C[R]]): C[R]

    Execute the statement and return a fully materialized collection.

  2. final def execute(implicit session: SessionDef): Unit

    Execute the statement and ignore the results.

  3. final def first(implicit session: SessionDef): R

    Execute the statement and return the first row of the result set.

    Execute the statement and return the first row of the result set. If the result set is empty, a NoSuchElementException is thrown.

  4. final def firstOption(implicit session: SessionDef): Option[R]

    Execute the statement and return the first row of the result set wrapped in Some, or None if the result set is empty.

  5. final def foreach(f: (R) => Unit, maxRows: Int = 0)(implicit session: SessionDef): Unit

    Execute the statement and call f for each converted row of the result set.

    Execute the statement and call f for each converted row of the result set.

    maxRows

    Maximum number of rows to read from the result (0 for unlimited).