QueryInterpreter

slick.memory.QueryInterpreter
See theQueryInterpreter companion object
class QueryInterpreter(db: Database, params: Any) extends Logging

A query interpreter for MemoryProfile and for client-side operations that need to be run as part of distributed queries against multiple backends.

It uses ScalaType, ProductValue/StructValue and plain Scala collections to represent data. Queries are expected to be in the shape after running all the standard query compiler phases (but not the extra relational phases) and assigning ScalaTypes everywhere.

Attributes

db

The in-memory database which is used for resolving Tables

params

The query parameters

Companion:
object
Source:
QueryInterpreter.scala
Graph
Supertypes
trait Logging
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Type members

Types

type Coll = Iterable[Any]

Attributes

Source:
QueryInterpreter.scala

Value members

Concrete methods

def asBoolean(v: Any): Boolean

Attributes

Source:
QueryInterpreter.scala
def compileLikePattern(s: String, escape: Option[Char]): Pattern

Attributes

Source:
QueryInterpreter.scala
def createNullRow(tpe: Type): Any

Attributes

Source:
QueryInterpreter.scala
def evalFunction(sym: TermSymbol, args: Seq[(Type, Any)], retType: Type): Any

Attributes

Source:
QueryInterpreter.scala
def logDebug(msg: String): Unit

Attributes

Source:
QueryInterpreter.scala
def reduceOptionIt[T](it: Iterator[Any], opt: Boolean, map: Any => T, reduce: (T, T) => T): Option[T]

Attributes

Source:
QueryInterpreter.scala
def run(n: Node): Any

Attributes

Source:
QueryInterpreter.scala
def unwrapSingleColumn(coll: Coll, tpe: Type): (Iterator[Any], Type)

Attributes

Source:
QueryInterpreter.scala

Concrete fields

var indent: Int

Attributes

Source:
QueryInterpreter.scala
val scope: HashMap[TermSymbol, Any]

Attributes

Source:
QueryInterpreter.scala