OrderByExpression

data class OrderByExpression(val expression: ScalarExpression<*>, val orderType: OrderType, val isLeafNode: Boolean = false, val extraProperties: Map<String, Any> = emptyMap()) : SqlExpression(source)

Order-by expression.

Constructors

Link copied to clipboard
constructor(expression: ScalarExpression<*>, orderType: OrderType, isLeafNode: Boolean = false, extraProperties: Map<String, Any> = emptyMap())

Properties

Link copied to clipboard

the sorting column, might be a ColumnExpression or other scalar expression types.

Link copied to clipboard
open override val extraProperties: Map<String, Any>

Extra properties of this expression, maybe useful in SqlFormatter to generate some special SQLs.

Link copied to clipboard
open override val isLeafNode: Boolean = false

Check if this expression is a leaf node in expression trees.

Link copied to clipboard

the sorting direction.