prorm API Reference
    Preparing search index...

    Class WindowFunctionBuilder

    A chainable builder that accumulates PARTITION BY / ORDER BY / frame clauses for a single window function call and renders the final FN(args) OVER (...) SQL fragment.

    Index
    • Set (or narrow) the target dialect. Only matters for the rare cases where OVER-clause syntax genuinely diverges (all listed dialects use the same ANSI-standard OVER syntax today, so this is mostly a documented escape hatch for future dialect-specific tweaks).

      Parameters

      Returns this

    • Terminal call: returns an [expr, alias] tuple compatible with the existing attributes: [...] pattern (see attributeToSql() / attributeToSqlWithAlias() in sql-compiler.ts, both of which already know how to render [LiteralExpression, alias] tuples without any core changes).

      Parameters

      • alias: string

      Returns [LiteralExpression, string]