prorm API Reference
    Preparing search index...

    Interface ViewCTE

    A common table expression inside a view definition.

    query takes a nested ViewDefinition — the SQL-free form — and still accepts the raw SelectOptions and string forms the dialect understands.

    interface ViewCTE {
        name: string;
        query: string | ViewDefinition | SelectOptions;
        recursive?: boolean;
        columns?: string[];
    }
    Index
    name: string

    Name the CTE is referenced by (and by itself, when recursive).

    query: string | ViewDefinition | SelectOptions

    The CTE body.

    recursive?: boolean

    Emit WITH RECURSIVE.

    columns?: string[]

    Explicit column list: name (col1, col2) AS (...).