enumFrameUnit
enum FrameUnit: string
Public API: explicitly declared with
@visibility public.The unit a window frame is measured in.
Source: https://sqlite.org/windowfunctions.html#frame_specifications.
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT sum(a) OVER (ROWS 1 PRECEDING) FROM t');
$query->statement->columns[0]->expression->over->frame->unit // => \SqlSemantics\Platform\Sqlite\Statement\Expression\Window\FrameUnit::RowsCases§
case Range = 'RANGE'case Rows = 'ROWS'case Groups = 'GROUPS'Test cases 12§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
Other tests reaching this symbol 9
WindowRuleTest::testDefinitionsLowersTheWindowClauseInWrittenOrdercallsWindowRuleTest::testFrameLowersAStartOnlyFrameAndABetweenFrameOfEveryUnitcallsFunctionCallTest::testRenderWritesANewlyBuiltCallcallsFrameBoundTest::testRenderWritesANewlyBuiltBoundarycallsFrameTest::testReadsBothEndsAndTheExclusioncallsFrameTest::testRenderWritesANewlyBuiltFramecallsWindowSpecTest::testExpressionsIsEmptyForAnEmptyWindowcallsWindowSpecTest::testReadsEveryPartOfAnAnalyzedWindowcallsWindowSpecTest::testRenderWritesANewlyBuiltSpecificationcalls