ProjectedSql<R, F extends Fields, O extends ProjectionOutput> extension
SQL composition that preserves a flat projection's named output fields.
Ordinary Query composition remains available. The source scope changes
only at the explicit CTE or UNION boundary, never merely at select.
- on
-
- SelectedQuery<
R, F, Projection< R, O> >
- SelectedQuery<
Methods
-
asCte(
String name) → DerivedQuery< R, O, Projection< R, O> > -
Available on SelectedQuery<
Exports named output slots into a fresh SQL scope.R, F, Projection< , provided by the ProjectedSql extensionR, O> > -
union<
G extends Fields> (SelectedQuery< R, G, Projection< other) → SelectedQuery<R, O> >R, O, Projection< R, O> > -
Available on SelectedQuery<
Combines rows from the same projection declaration, removing duplicates.R, F, Projection< , provided by the ProjectedSql extensionR, O> > -
unionAll<
G extends Fields> (SelectedQuery< R, G, Projection< other) → SelectedQuery<R, O> >R, O, Projection< R, O> > -
Available on SelectedQuery<
Combines matching SQL rows, preserving duplicates.R, F, Projection< , provided by the ProjectedSql extensionR, O> >