CteClause

internal class CteClause

The WITH clause, which every builder here can carry and none of them renders differently.

Held as a field rather than inherited, so that with and recursive stay declared on each builder and return that builder's own type - two one-line methods apiece, against a self-typed base class whose type parameter would show up in every signature the reader sees.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun add(name: String, query: String)
Link copied to clipboard
fun copyFrom(other: CteClause)
Link copied to clipboard
fun render(): String

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