English | 简体中文

api-docs / org.ktorm.support.mysql / NaturalJoinExpression

NaturalJoinExpression

data class NaturalJoinExpression : QuerySourceExpression (source code)

MySQL natural join expression.

Constructors

NameSummary

<init>

NaturalJoinExpression(
    left: QuerySourceExpression,
    right: QuerySourceExpression,
    isLeafNode: Boolean = false,
    extraProperties: Map<String, Any> = emptyMap())

MySQL natural join expression.

Properties

NameSummary

extraProperties

val extraProperties: Map<String, Any>

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

isLeafNode

val isLeafNode: Boolean

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

left

the left table.

right

the right table.

Extension Functions

NameSummary

eq

infix fun <T : Any> T.eq(
    expr: ColumnDeclaring<T>
): BinaryExpression<Boolean>

Equal operator, translated to = in SQL.

neq

infix fun <T : Any> T.neq(
    expr: ColumnDeclaring<T>
): BinaryExpression<Boolean>

Not-equal operator, translated to <> in SQL.

notEq

infix fun <T : Any> T.notEq(
    expr: ColumnDeclaring<T>
): BinaryExpression<Boolean>

Not-equal operator, translated to <> in SQL.