api-docs / org.ktorm.dsl / QuerySource
QuerySource
data class QuerySource
(source code)Represents a query source, used in the from
clause of a query.
Since
2.7
Constructors
Name | Summary |
---|---|
QuerySource( Represents a query source, used in the |
Properties
Name | Summary |
---|---|
val database: Database the Database instance that the query is running on. | |
val expression: QuerySourceExpression the underlying SQL expression. | |
val sourceTable: BaseTable<*> the origin source table. |
Extension Functions
Name | Summary |
---|---|
fun QuerySource.crossJoin( Perform a cross join and return a new QuerySource, translated to | |
infix fun <T : Any> T.eq( Equal operator, translated to | |
fun QuerySource.fullJoin( Perform a full join and return a new QuerySource, translated to | |
fun QuerySource.innerJoin( Perform an inner join and return a new QuerySource, translated to | |
fun QuerySource.joinReferencesAndSelect(): Query Return a new-created Query object, left joining all the reference tables, and selecting all columns of them. | |
fun QuerySource.leftJoin( Perform a left join and return a new QuerySource, translated to | |
fun QuerySource.naturalJoin(right: BaseTable<*>): QuerySource Join the right table and return a new QuerySource, translated to | |
infix fun <T : Any> T.neq( Not-equal operator, translated to | |
infix fun <T : Any> T.notEq( Not-equal operator, translated to | |
fun QuerySource.rightJoin( Perform a right join and return a new QuerySource, translated to | |
fun QuerySource.select( fun QuerySource.select( Create a query object, selecting the specific columns or expressions from this QuerySource. | |
fun QuerySource.selectDistinct( fun QuerySource.selectDistinct( Create a query object, selecting the specific columns or expressions from this QuerySource distinctly. |