CteClause

internal class CteClause

The WITH clause every builder carries. A field rather than a base class, so with and recursive return each builder's own type.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun add(name: String, query: String)

Adds one common table expression; query is its body without the parentheses.

Link copied to clipboard
fun copyFrom(other: CteClause)

Copies other's contents into this clause, so a builder's copy() shares no list with its source.

Link copied to clipboard
fun render(): String

Renders the clause with its trailing newline, or nothing at all where no CTE was added.