Packages

c

scalaql.syntax

OrderBySyntax

final class OrderBySyntax[In, Out] extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OrderBySyntax
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new OrderBySyntax(self: Query[In, Out])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  7. macro def orderBy[B, C, D](f1: (Out) => B, f2: (Out) => C, f3: (Out) => D)(implicit orderingB: Ordering[B], orderingC: Ordering[C], orderingD: Ordering[D]): Query[In, Out]

    Orders this query output values by the specified ordering keys.

    Orders this query output values by the specified ordering keys. Could be ordered either ascending or descending.

    B

    first ordering key type

    C

    second ordering key type

    D

    third ordering key type

    f1

    get the first ordering key

    f2

    get the second ordering key

    f3

    get the third ordering key

    orderingB

    ordering of the first key

    orderingC

    ordering of the second key

    orderingD

    ordering of the third key

    returns

    query emitting values in the specified order

    Note

    for descending order, it's required to use .desc method on the ordering key. scalaql will automatically reverse the implicit ordering. Example:

    select[Person].orderBy(_.name, _.age, _.salary)
    // or
    select[Person].orderBy(_.name, _.age.desc, _.salary.desc)
  8. macro def orderBy[B, C](f1: (Out) => B, f2: (Out) => C)(implicit orderingB: Ordering[B], orderingC: Ordering[C]): Query[In, Out]

    Orders this query output values by the specified ordering keys.

    Orders this query output values by the specified ordering keys. Could be ordered either ascending or descending.

    B

    first ordering key type

    C

    second ordering key type

    f1

    get the first ordering key

    f2

    get the second ordering key

    orderingB

    ordering of the first key

    orderingC

    ordering of the second key

    returns

    query emitting values in the specified order

    Note

    for descending order, it's required to use .desc method on the ordering key. scalaql will automatically reverse the implicit ordering. Example:

    select[Person].orderBy(_.name, _.age)
    // or
    select[Person].orderBy(_.name, _.age.desc)
  9. macro def orderBy[B](f: (Out) => B)(implicit orderingB: Ordering[B]): Query[In, Out]

    Orders this query output values by the specified ordering key.

    Orders this query output values by the specified ordering key. Could be ordered either ascending or descending.

    B

    ordering key type

    f

    get the ordering key

    orderingB

    ordering of the key

    returns

    query emitting values in the specified order

    Note

    for descending order, it's required to use .desc method on the ordering key. scalaql will automatically reverse the implicit ordering. Example:

    select[Person].orderBy(_.age)
    // or
    select[Person].orderBy(_.age.desc)
  10. def ordered(implicit order: Ordering[Out], In: scalaql.Tag[In], Out: scalaql.Tag[Out]): Query[In, Out]

    Orders this query output values by their natural order.

    Orders this query output values by their natural order.

    order

    the natural order of output values

    returns

    query emitting values in the specified order

  11. val self: Query[In, Out]
  12. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped