api-docs / org.ktorm.expression / SqlExpression / <init>
<init>
SqlExpression()
Root class of SQL expressions or statements.
SQL expressions are tree structures, and can be regarded as SQL abstract syntax trees (AST).
Subclasses must satisfy the following rules:
- Must be data class, providing common abilities such as destruction,
copy
function,equals
function, etc. - Must be immutable, any modify operation should return a new expression instance.
To visit or modify expression trees, use SqlExpressionVisitor.
To format expressions as executable SQL strings, use SqlFormatter.
See Also