Compiled

slick.lifted.Compiled
See theCompiled companion object
sealed trait Compiled[T]

A possibly parameterized query that will be cached for repeated efficient execution without having to recompile it every time. The compiled state is computed on demand the first time a Cached value is executed. It is always tied to a specific profile.

Cached forms a limited monad which ensures that it can only contain values that are Compilable.

Attributes

Companion:
object
Source:
Compiled.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class CompiledFunction[F, PT, PU, R, RU]
trait RunnableCompiled[R, RU]
class AppliedCompiledFunction[PU, R, RU]
class CompiledExecutable[R, RU]
trait StreamableCompiled[R, RU, EU]

Members list

Concise view

Value members

Abstract methods

def extract: T

Return the underlying query or query function. It can be safely extracted for reuse without caching the compiled representation.

Return the underlying query or query function. It can be safely extracted for reuse without caching the compiled representation.

Attributes

Source:
Compiled.scala

The profile which is used for compiling the query.

The profile which is used for compiling the query.

Attributes

Source:
Compiled.scala

Concrete methods

def flatMap[U <: Compiled[_]](f: T => U): U

Perform a transformation of the underlying value. The computed Compiled value is returned unmodified.

Perform a transformation of the underlying value. The computed Compiled value is returned unmodified.

Attributes

Source:
Compiled.scala
def map[U, C <: Compiled[U]](f: T => U)(implicit uCompilable: Compilable[U, C]): C

Perform a transformation of the underlying value. The computed value must be Compilable. The resulting Compiled instance will be recompiled when needed. It does not benefit from this instance already containing the compiled state.

Perform a transformation of the underlying value. The computed value must be Compilable. The resulting Compiled instance will be recompiled when needed. It does not benefit from this instance already containing the compiled state.

Attributes

Source:
Compiled.scala