api-docs / org.ktorm.expression / SelectExpression
SelectExpression
data class SelectExpression : QueryExpression
(source code)Select expression, represents a select
statement of SQL.
Constructors
Name | Summary |
---|---|
SelectExpression( Select expression, represents a |
Properties
Name | Summary |
---|---|
val columns: List<ColumnDeclaringExpression<*>> the selected column declarations, empty means | |
Extra properties of this expression, maybe useful in SqlFormatter to generate some special SQLs. | |
val from: QuerySourceExpression the query’s source, represents the | |
val groupBy: List<ScalarExpression<*>> the grouping conditions, represents the | |
val having: ScalarExpression<Boolean>? the having condition, represents the | |
val isDistinct: Boolean mark if this query is distinct, true means the SQL is | |
val limit: Int? max record numbers returned by the query. | |
val offset: Int? the offset of the first returned record. | |
val orderBy: List<OrderByExpression> a list of order-by expressions, used in the | |
val tableAlias: String? the alias when this query is nested in another query’s source, eg. | |
val where: ScalarExpression<Boolean>? the filter condition, represents the |
Inherited Properties
Name | Summary |
---|---|
val isLeafNode: Boolean Check if this expression is a leaf node in expression trees. |
Extension Functions
Name | Summary |
---|---|
infix fun <T : Any> T.eq( Equal operator, translated to | |
infix fun <T : Any> T.neq( Not-equal operator, translated to | |
infix fun <T : Any> T.notEq( Not-equal operator, translated to |