Invoker

slick.jdbc.Invoker
trait Invoker[+R]

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

Attributes

Source
Invoker.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ResultSetInvoker[R]
class StatementInvoker[R]
trait QueryInvoker[R]
class QueryInvokerImpl[R]
Self type
Invoker[R]

Members list

Value members

Abstract methods

def iteratorTo(maxRows: Int)(implicit session: JdbcSessionDef): CloseableIterator[R]

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

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

Value parameters

maxRows

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

Attributes

Source
Invoker.scala

Concrete methods

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

Execute the statement and return a fully materialized collection.

Execute the statement and return a fully materialized collection.

Attributes

Source
Invoker.scala
protected def debuggingId: Option[String]

Attributes

Source
Invoker.scala
final def execute(implicit session: JdbcSessionDef): Unit

Execute the statement and ignore the results.

Execute the statement and ignore the results.

Attributes

Source
Invoker.scala
final def first(implicit session: JdbcSessionDef): R

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

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

Attributes

Source
Invoker.scala
final def firstOption(implicit session: JdbcSessionDef): 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.

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

Attributes

Source
Invoker.scala
final def foreach(f: R => Unit, maxRows: Int)(implicit session: JdbcSessionDef): 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.

Value parameters

maxRows

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

Attributes

Source
Invoker.scala