Skip to content

Commit

Permalink
chore: including the Null, NotNull and countAll keywords in Met…
Browse files Browse the repository at this point in the history
…hod.g4 grammar

Signed-off-by: Maximillian Arruda <dearrudam@gmail.com>
  • Loading branch information
dearrudam committed Jun 5, 2024
1 parent 8d42e9c commit 735e78d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions antlr4/org/eclipse/jnosql/query/grammar/method/Method.g4
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ grammar Method;
select: selectStart where? order? EOF;
deleteBy: 'deleteBy' where? EOF;

selectStart: 'find' limit 'By' | 'findBy'| 'countBy'| 'existsBy';
selectStart: 'find' limit 'By' | 'findBy' | 'countAll' | 'countBy' | 'existsBy';
where: condition (and condition| or condition)* ;
condition: eq | gt | gte | lt | lte | between | in | like | truth | untruth;
condition: eq | gt | gte | lt | lte | between | in | like | truth | untruth | nullable;
order: 'OrderBy' orderName (orderName)*;
orderName: variable | variable asc | variable desc;
limit : 'First' max?;
Expand All @@ -22,6 +22,7 @@ lte: variable not? 'LessThanEqual';
between: variable not? 'Between';
in: variable not? 'In';
like: variable not? 'Like';
nullable: variable not? 'Null';
not: 'Not';
variable: ANY_NAME;
max: INT;
Expand Down

0 comments on commit 735e78d

Please sign in to comment.