SingleColumnQueryExtensionMethods

slick.lifted.SingleColumnQueryExtensionMethods
final class SingleColumnQueryExtensionMethods[B1, P1, C[_]](val q: Query[Rep[P1], _, C]) extends AnyVal

Extension methods for Queries of a single column

Attributes

Source:
ExtensionMethods.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Concise view

Type members

Types

type OptionTM = TypedType[Option[B1]]

Attributes

Source:
ExtensionMethods.scala

Value members

Concrete methods

def avg(implicit tm: OptionTM): Rep[Option[B1]]

Compute the average of a single-column Query, or None if the Query is empty

Compute the average of a single-column Query, or None if the Query is empty

Attributes

Source:
ExtensionMethods.scala
def countDefined(implicit ev: P1 <:< Option[_]): Rep[Int]

Count the number of Some elements of a single-column Query.

Count the number of Some elements of a single-column Query.

Attributes

Source:
ExtensionMethods.scala
def max(implicit tm: OptionTM): Rep[Option[B1]]

Compute the maximum value of a single-column Query, or None if the Query is empty

Compute the maximum value of a single-column Query, or None if the Query is empty

Attributes

Source:
ExtensionMethods.scala
def min(implicit tm: OptionTM): Rep[Option[B1]]

Compute the minimum value of a single-column Query, or None if the Query is empty

Compute the minimum value of a single-column Query, or None if the Query is empty

Attributes

Source:
ExtensionMethods.scala
def sum(implicit tm: OptionTM): Rep[Option[B1]]

Compute the sum of a single-column Query, or None if the Query is empty

Compute the sum of a single-column Query, or None if the Query is empty

Attributes

Source:
ExtensionMethods.scala

Concrete fields

val q: Query[Rep[P1], _, C]

Attributes

Source:
ExtensionMethods.scala