final class QueryAliasing[In] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- QueryAliasing
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def as[U <: String with Singleton](name: U)(implicit In: scalaql.Tag[In], U: scalaql.Tag[U]): Query[From[as[In, U]], In]
Allows to alias
thisquery input type, so that it could be combined with other queries with the same underlying type.Allows to alias
thisquery input type, so that it could be combined with other queries with the same underlying type.Example:
val peers = select[Person] .as("people1") .join(select[Person].as("people2")) .on(_.age == _.age) .map { case (left, right) => Peer( who = left.name, age = left.age, peer = right.name ) }
- U
singleton type of the alias
- name
the alias (only it's singleton type is used)
- returns
thisquery aliased
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def toString(): String
- Definition Classes
- Any