QueryInvoker

com.github.takezoe.slick.blocking.BlockingJdbcProfile.BlockingJdbcAPI.QueryInvoker
class QueryInvoker[R](tree: Node, param: Any) extends QueryInvokerImpl[R]

Extends QueryInvokerImpl to add selectStatement method.

Attributes

Source
BlockingProfile.scala
Graph
Supertypes
class QueryInvokerImpl[R]
trait QueryInvoker[R]
class StatementInvoker[R]
trait Invoker[R]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def selectStatement: String

Attributes

Source
BlockingProfile.scala

Inherited methods

final def buildColl[C[_]](implicit session: JdbcBackend#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

Inherited from:
Invoker
Source
Invoker.scala
final def execute(implicit session: JdbcBackend#JdbcSessionDef): Unit

Execute the statement and ignore the results.

Execute the statement and ignore the results.

Attributes

Inherited from:
Invoker
Source
Invoker.scala
def extractValue(pr: PositionedResult): R

Attributes

Inherited from:
QueryInvokerImpl
Source
JdbcInvokerComponent.scala
final def first(implicit session: JdbcBackend#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

Inherited from:
Invoker
Source
Invoker.scala
final def firstOption(implicit session: JdbcBackend#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

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

Inherited from:
Invoker
Source
Invoker.scala
def invoker: JdbcInvokerComponent.this.QueryInvoker.this.type

Attributes

Inherited from:
QueryInvoker
Source
JdbcInvokerComponent.scala
def iteratorTo(maxRows: Int)(implicit session: JdbcBackend#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

Inherited from:
StatementInvoker
Source
StatementInvoker.scala
def results(maxRows: Int, defaultType: ResultSetType, defaultConcurrency: ResultSetConcurrency, defaultHoldability: ResultSetHoldability, autoClose: Boolean)(implicit session: JdbcBackend#JdbcSessionDef): Either[Int, PositionedResultIterator[R]]

Invoke the statement and return the raw results.

Invoke the statement and return the raw results.

Attributes

Inherited from:
StatementInvoker
Source
StatementInvoker.scala
def updateRowValues(pr: PositionedResult, value: R): Unit

Attributes

Inherited from:
QueryInvokerImpl
Source
JdbcInvokerComponent.scala