final class WindowSyntax[In, Out] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- WindowSyntax
- 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
- 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
- def window[Res](agg: (QueryExpressionBuilder[Out]) => Of[Out, Res])(implicit In: scalaql.Tag[In], flatten: TupleFlatten[(Out, Res)]): WindowDsl[In, Out, Res, Out]
Entrypoint for building a windowed query - equivalent of plain SQL window functions.
Entrypoint for building a windowed query - equivalent of plain SQL window functions.
Example:
select[Order] .window( _.avgBy(_.unitPrice) ) .over( _.partitionBy(_.customerId) .orderBy(_.orderDate.desc) )
- Res
window function result
- agg
window function aggregation or ranking
- returns
an entrypoint for defining window functions
- See also