scala.slick.lifted

Query

object Query extends Query[Unit, Unit]

The companion object for Query contains factory methods for creating queries and also acts as an empty Query.

Source
Query.scala
Linear Supertypes
Query[Unit, Unit], Rep[Seq[Unit]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Query
  2. Query
  3. Rep
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def ++[O >: Unit, R](other: Query[O, Unit]): WrappingQuery[O, Unit]

    Return a new query containing the elements from both operands.

    Return a new query containing the elements from both operands. Duplicate elements are preserved.

    Definition Classes
    Query
  5. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  7. def apply[E, U, R](value: E)(implicit unpack: Shape[_ <: Flat, E, U, R]): Query[R, U]

    Lift a scalar value to a Query.

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def countDistinct: Column[Int]

    The number of distinct elements of the query.

    The number of distinct elements of the query.

    Definition Classes
    Query
  11. def drop(num: Int): Query[Unit, Unit]

    Select all elements except the first num ones.

    Select all elements except the first num ones.

    Definition Classes
    Query
  12. def encodeRef(path: List[ast.Symbol]): Query[Unit, Unit]

    Encode a reference into this Rep

    Encode a reference into this Rep

    Definition Classes
    QueryRep
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def exists: Column[Boolean]

    Test whether this query is non-empty.

    Test whether this query is non-empty.

    Definition Classes
    Query
  16. def filter[T](f: (Unit) ⇒ T)(implicit wt: CanBeQueryCondition[T]): Query[Unit, Unit]

    Definition Classes
    Query
  17. def filterNot[T](f: (Unit) ⇒ T)(implicit wt: CanBeQueryCondition[T]): Query[Unit, Unit]

    Definition Classes
    Query
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def flatMap[F, T](f: (Unit) ⇒ Query[F, T]): Query[F, T]

    Build a new query by applying a function to all elements of this query and using the elements of the resulting queries.

    Build a new query by applying a function to all elements of this query and using the elements of the resulting queries. This corresponds to an implicit inner join in SQL.

    Definition Classes
    Query
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def groupBy[K, T, G, P](f: (Unit) ⇒ K)(implicit kshape: Shape[_ <: Flat, K, T, G], vshape: Shape[_ <: Flat, Unit, _, P]): Query[(G, Query[P, Unit]), (T, Query[P, Unit])]

    Partition this query into a query of pairs of a key and a nested query containing the elements for the key, according to some discriminator function.

    Partition this query into a query of pairs of a key and a nested query containing the elements for the key, according to some discriminator function.

    Definition Classes
    Query
  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. def innerJoin[E2, U2](q2: Query[E2, U2]): BaseJoinQuery[Unit, E2, Unit, U2]

    Join two collections with an inner join.

    Join two collections with an inner join. An optional join predicate can be specified later by calling on.

    Definition Classes
    Query
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. def join[E2, U2](q2: Query[E2, U2], jt: JoinType = JoinType.Inner): BaseJoinQuery[Unit, E2, Unit, U2]

    Join two collections.

    Join two collections. An optional join predicate can be specified later by calling on.

    Definition Classes
    Query
  26. def leftJoin[E2, U2](q2: Query[E2, U2]): BaseJoinQuery[Unit, E2, Unit, U2]

    Join two collections with a left outer join.

    Join two collections with a left outer join. An optional join predicate can be specified later by calling on.

    Definition Classes
    Query
  27. def length: Column[Int]

    The total number of elements of the query.

    The total number of elements of the query.

    Definition Classes
    Query
  28. def map[F, G, T](f: (Unit) ⇒ F)(implicit shape: Shape[_ <: Flat, F, T, G]): Query[G, T]

    Build a new query by applying a function to all elements of this query.

    Build a new query by applying a function to all elements of this query.

    Definition Classes
    Query
  29. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  32. def outerJoin[E2, U2](q2: Query[E2, U2]): BaseJoinQuery[Unit, E2, Unit, U2]

    Join two collections with a full outer join.

    Join two collections with a full outer join. An optional join predicate can be specified later by calling on.

    Definition Classes
    Query
  33. def pack[R](implicit packing: Shape[_ <: Flat, Unit, _, R]): Query[R, Unit]

    Definition Classes
    Query
  34. final lazy val packed: Node

    Definition Classes
    Query
  35. def pure[E, U, R](value: E)(implicit unpack: Shape[_ <: Flat, E, U, R]): Query[R, U]

  36. def rightJoin[E2, U2](q2: Query[E2, U2]): BaseJoinQuery[Unit, E2, Unit, U2]

    Join two collections with a right outer join.

    Join two collections with a right outer join. An optional join predicate can be specified later by calling on.

    Definition Classes
    Query
  37. def sortBy[T](f: (Unit) ⇒ T)(implicit arg0: (T) ⇒ Ordered): Query[Unit, Unit]

    Sort this query according to a function which extracts the ordering criteria from the query's elements.

    Sort this query according to a function which extracts the ordering criteria from the query's elements.

    Definition Classes
    Query
  38. def sorted(implicit ev: (Unit) ⇒ Ordered): Query[Unit, Unit]

    Sort this query according to a the ordering of its elements.

    Sort this query according to a the ordering of its elements.

    Definition Classes
    Query
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  40. def take(num: Int): Query[Unit, Unit]

    Select the first num elements.

    Select the first num elements.

    Definition Classes
    Query
  41. def toNode: Node

    Get the Node for this Rep

    Get the Node for this Rep

    Definition Classes
    QueryRep
  42. def toString(): String

    Definition Classes
    AnyRef → Any
  43. def union[O >: Unit, R](other: Query[O, Unit]): WrappingQuery[O, Unit]

    Return a new query containing the elements from both operands.

    Return a new query containing the elements from both operands. Duplicate elements are eliminated from the result.

    Definition Classes
    Query
  44. def unionAll[O >: Unit, R](other: Query[O, Unit]): WrappingQuery[O, Unit]

    Return a new query containing the elements from both operands.

    Return a new query containing the elements from both operands. Duplicate elements are preserved.

    Definition Classes
    Query
  45. def unpackable: ShapedValue[Unit, Unit]

    Definition Classes
    QueryQuery
  46. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. def where[T <: Column[_]](f: (Unit) ⇒ T)(implicit arg0: CanBeQueryCondition[T]): Query[Unit, Unit]

    Select all elements of this query which satisfy a predicate.

    Select all elements of this query which satisfy a predicate. Unlike filter, this method only allows Column-valued predicates, so it guards against the accidental use use plain Booleans.

    Definition Classes
    Query
  50. def withFilter[T](f: (Unit) ⇒ T)(implicit arg0: CanBeQueryCondition[T]): Query[Unit, Unit]

    Select all elements of this query which satisfy a predicate.

    Select all elements of this query which satisfy a predicate. This method is used when desugaring for-comprehensions over queries. There is no reason to call it directly because it is the same as filter.

    Definition Classes
    Query
  51. def zip[E2, U2](q2: Query[E2, U2]): Query[(Unit, E2), (Unit, U2)]

    Return a query formed from this query and another query by combining corresponding elements in pairs.

    Return a query formed from this query and another query by combining corresponding elements in pairs.

    Definition Classes
    Query
  52. def zipWith[E2, U2, F, G, T](q2: Query[E2, U2], f: (Unit, E2) ⇒ F)(implicit shape: Shape[_ <: Flat, F, T, G]): Query[G, T]

    Return a query formed from this query and another query by combining corresponding elements with the specified function.

    Return a query formed from this query and another query by combining corresponding elements with the specified function.

    Definition Classes
    Query
  53. def zipWithIndex: BaseJoinQuery[Unit, Column[Long], Unit, Long]

    Zip this query with its indices (starting at 0).

    Zip this query with its indices (starting at 0).

    Definition Classes
    Query

Deprecated Value Members

  1. def >>[F, T](q: Query[F, T]): Query[F, T]

    Definition Classes
    Query
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) Use flatMap instead

Inherited from Query[Unit, Unit]

Inherited from Rep[Seq[Unit]]

Inherited from AnyRef

Inherited from Any

Ungrouped