Class WindowFrameClause

Assembly: redb.Core.Pro.dll

The ROWS|RANGE BETWEEN ... AND ... clause of a window, compiled from the JSON the core writes
(RedbWindowedQueryable.SerializeFrame):
{"type":"ROWS","start":{"kind":"PRECEDING","offset":3},"end":{"kind":"CURRENTROW","offset":null}}.

One place for the three Pro providers. Each of them used to read its own, different shape
(StartType/EndType at the top level), found none of the fields, and turned every frame
into ROWS BETWEEN CURRENT ROW AND CURRENT ROW - a running sum returned the current row, with no
error (review 2026-09-24, FRM-1). A bound this code does not understand is refused, never replaced by
CURRENT ROW. The frame syntax is the same on PostgreSQL, SQL Server and SQLite; what an engine does not
support (SQL Server's RANGE with an offset) is its own error.

public static class WindowFrameClause

Inheritance

Object→WindowFrameClause

Methods

Compile(string)

Compiles the core's frame JSON to a frame clause, e.g. ROWS BETWEEN 1 PRECEDING AND CURRENT ROW.

public static string Compile(string frameJson)