English | 简体中文

api-docs / org.ktorm.expression / TableExpression

TableExpression

data class TableExpression : QuerySourceExpression (source code)

Table expression.

Constructors

NameSummary

<init>

TableExpression(
    name: String,
    tableAlias: String? = null,
    catalog: String? = null,
    schema: String? = null,
    isLeafNode: Boolean = true,
    extraProperties: Map<String, Any> = emptyMap())

Table expression.

Properties

NameSummary

catalog

val catalog: String?

the table’s catalog.

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.

name

val name: String

the table’s name.

schema

val schema: String?

the table’s schema.

tableAlias

val tableAlias: String?

the table’s alias.

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.