Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
83b3f97
Support GQL LET and RETURN
apstndb Sep 13, 2024
7d5c816
Experimental GQL MATCH statement support
apstndb Sep 13, 2024
68ab6ab
Improve experiment support of graph patterns
apstndb Sep 13, 2024
a6cc288
Implement GRAPH_TABLE operator
apstndb Sep 13, 2024
9d05bd2
Refactor SQL() with list
apstndb Sep 13, 2024
602307e
Implement graph patterns
apstndb Sep 13, 2024
54353ea
Support FILTER, ORDER BY, LIMIT, SKIP/OFFSET, FOR, WITH statements
apstndb Sep 14, 2024
7d4d49a
Clean up lexer.go
apstndb Sep 14, 2024
17dfe7e
Add GRAPH as a top level statement
apstndb Sep 16, 2024
e925a5a
Implement some Pos(), End(), Sql()
apstndb Sep 16, 2024
51b27df
Add some testdata
apstndb Sep 16, 2024
c817e66
Complete Pos(), End() of edge_patterns
apstndb Sep 16, 2024
c4fdacb
Fix typo of pattern filler and some wording changes
apstndb Sep 16, 2024
717a60a
Add GRAPH_TABLE tests
apstndb Sep 16, 2024
d763921
Clean GraphTableExpr
apstndb Sep 16, 2024
175e929
Implement IN GQL subquery
apstndb Sep 17, 2024
e322d36
Implement ARRAY and VALUE GQL subqueries
apstndb Sep 17, 2024
a84cde3
Implement EXISTS GQL subquery
apstndb Sep 17, 2024
b12a4eb
Implement IsSourceExpr and IsDestinationExpr, and add tests
apstndb Sep 17, 2024
aba43ad
Fix IsSourceExpr and IsDestinationExpr, rename parseGqlSubQueryInCond…
apstndb Sep 17, 2024
6e6b351
Implement Pos()/End()/SQL()
apstndb Sep 17, 2024
b04f85e
Update testdata
apstndb Sep 17, 2024
c9db320
Some clean up of util.go
apstndb Sep 17, 2024
4a99dcc
Implement GqlCollationSpecification
apstndb Sep 17, 2024
006feb6
Bump go version to 1.20
apstndb Sep 17, 2024
82c7d91
Fix unexpected change of tools/parse
apstndb Sep 17, 2024
b3c5df8
Merge into parser.go
apstndb Sep 17, 2024
4b2c2ad
Quote go-version
apstndb Sep 17, 2024
ce57710
Remove unused member function
apstndb Sep 17, 2024
51efb46
Fix infinite recursion bug
apstndb Sep 17, 2024
fbc6fbe
Fix parser.go
apstndb Sep 17, 2024
f3d67a9
Rename Gql to GQL
apstndb Sep 17, 2024
078a7cf
Remove redundant iota
apstndb Sep 17, 2024
57e3649
Improve EXISTS { match_statement } pattern
apstndb Sep 17, 2024
03a0754
Strictify parseGQLSimpleLinearQueryStatement
apstndb Sep 17, 2024
d9a5811
Update go doc comments, modify enums
apstndb Sep 18, 2024
c40cb6e
Update testdata
apstndb Sep 18, 2024
e992175
Fix gosimple lint error
apstndb Sep 18, 2024
62ebd53
Merge remote-tracking branch 'origin/main' into support-gql
apstndb Oct 30, 2024
c61ce4b
Fix merge error
apstndb Oct 30, 2024
7c2cb11
Fix tests
apstndb Nov 1, 2024
2c9ee55
Update testdata
apstndb Nov 1, 2024
7bd3908
Merge remote-tracking branch 'origin/main' into support-gql
apstndb Jan 12, 2025
47df7b7
Merge remote-tracking branch 'origin/main' into support-gql
apstndb Jan 13, 2025
1693812
Update walk_internal.go
apstndb Jan 13, 2025
46cddeb
Add Hint to GQLGraphQuery
apstndb Jan 14, 2025
487537f
Implement path variables
apstndb Jan 14, 2025
4e22f71
Fix GQLTopLevelPathPattern
apstndb Jan 14, 2025
343792f
Implement ACYCLIC path mode
apstndb Jan 14, 2025
18691e8
Fix GQLLimitWithOffsetClause
apstndb Jan 14, 2025
fd3edeb
Split GQLLabelPrimary
apstndb Jan 14, 2025
17a4948
Fix code style
apstndb Jan 14, 2025
cab4597
Improve edge patterns
apstndb Jan 14, 2025
d6a0af7
Improve GQLPathMode
apstndb Jan 14, 2025
a10e98b
Fix optional lower bound in GQLBoundedQuantifier
apstndb Jan 14, 2025
b36d20c
Refactor AllOrDistinct and SQL()
apstndb Jan 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
875 changes: 872 additions & 3 deletions ast/ast.go

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions ast/ast_const.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,36 @@ const (
InsertOrTypeUpdate InsertOrType = "UPDATE"
InsertOrTypeIgnore InsertOrType = "IGNORE"
)

type GQLSetOperatorEnum string

const (
GQLSetOperatorUnion GQLSetOperatorEnum = "UNION"
GQLSetOperatorIntersect GQLSetOperatorEnum = "INTERSECT"
GQLSetOperatorExcept GQLSetOperatorEnum = "EXCEPT"
)

type GQLDirectionEnum string

const (
GQLSortOrderAsc GQLDirectionEnum = "ASC"
GQLSortOrderAscending GQLDirectionEnum = "ASCENDING"
GQLSortOrderDesc GQLDirectionEnum = "DESC"
GQLSortOrderDescending GQLDirectionEnum = "DESCENDING"
)

type GQLPathModeEnum string

const (
GQLPathModeWalk GQLPathModeEnum = "WALK"
GQLPathModeTrail GQLPathModeEnum = "TRAIL"
GQLPathModeAcyclic GQLPathModeEnum = "ACYCLIC"
)

type GQLSearchPrefixEnum string

const (
GQLPathSearchPrefixAll GQLSearchPrefixEnum = "ALL"
GQLPathSearchPrefixAny GQLSearchPrefixEnum = "ANY"
GQLPathSearchPrefixAnyShortest GQLSearchPrefixEnum = "ANY SHORTEST"
)
Loading