Extend the `order by` clause with optional `nulls first` and `nulls last` modifiers following standard SQL semantics. Each sort key can independently specify where `nil` values should appear in the result. By default, ascending sorts place nulls last and descending sorts place nulls first. An explicit nulls first or nulls last overrides this default. The `asc` keyword is also now accepted as an explicit alternative to the default ascending direction. Documentation and tests were updated accordingly. Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
39 lines
761 B
JavaScript
39 lines
761 B
JavaScript
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
export const
|
|
Comment = 1,
|
|
Chunk = 2,
|
|
Block = 3,
|
|
Label = 5,
|
|
Name = 7,
|
|
Number = 20,
|
|
LiteralString = 21,
|
|
FunctionCall = 30,
|
|
TableConstructor = 32,
|
|
BinaryExpression = 39,
|
|
CompareOp = 42,
|
|
UnaryExpression = 51,
|
|
FuncBody = 58,
|
|
ArgList = 59,
|
|
Query = 60,
|
|
QueryClause = 62,
|
|
FromClause = 63,
|
|
WhereClause = 65,
|
|
OrderByClause = 67,
|
|
OrderBy = 70,
|
|
SelectClause = 76,
|
|
LimitClause = 78,
|
|
GroupByClause = 80,
|
|
HavingClause = 82,
|
|
IfStatement = 87,
|
|
ForStatement = 92,
|
|
ForNumeric = 94,
|
|
ForGeneric = 95,
|
|
NameList = 96,
|
|
ExpList = 98,
|
|
FuncName = 100,
|
|
VarList = 104,
|
|
AttNameList = 106,
|
|
AttName = 107,
|
|
Attrib = 108,
|
|
ReturnStatement = 109
|