package gqlparser
Import Path
github.com/pancsta/gochickpeas/gql/gqlparser (on go.dev)
Dependency Relation
imports 3 packages, and imported by one package
Involved Source Files
Desugar: query normalization that runs once on the parsed AST before
binding/planning. This is a verbatim copy of gql/internal/semantics/
desugar.go (which cannot be imported outside the module) with the local
aliases substituted for the ast package. Keep in sync with upstream.
Lowers non-literal inline pattern property values: a constant value
((t:Tag {name: 'Hot'}), {id: $p}) stays on the fast props seek path, but
an expression value ((t:Tag {name: tagVar}), {since: a.created}) is
rewritten to a WHERE var.key = value equality conjunct on the (possibly
synthesized) node/relationship variable, so pattern matching never
evaluates an expression inside a pattern.
Idempotent: a second pass finds the PropExprs already drained.
Package gqlparser is a thin public re-export of the GQL parser front-end
(gql/internal/parser and gql/internal/ast), which Go forbids importing
from outside this module. It is the only fork-specific addition and holds
no engine logic: Parse and Desugar delegate to the upstream packages, and
the names below are type aliases, so values are interchangeable with the
internal ones.
Consumers wanting only syntax (no chickpeas store) build their own
binder/executor on top of Parse + Desugar.
Package-Level Type Names (total 63)
Expression AST nodes.
Expression AST nodes.
Query and clause AST nodes.
Query and clause AST nodes.
Expression AST nodes.
Expression AST nodes.
Query and clause AST nodes.
Expression AST nodes.
Query and clause AST nodes.
Query and clause AST nodes.
Expression AST nodes.
Query and clause AST nodes.
Expression AST nodes.
Expression AST nodes.
Expression AST nodes.
Expression AST nodes.
Expression AST nodes.
Expression AST nodes.
Expression AST nodes.
Expression AST nodes.
Expression AST nodes.
Query and clause AST nodes.
Query and clause AST nodes.
Expression AST nodes.
Expression AST nodes.
Expression AST nodes.
Expression AST nodes.
Expression AST nodes.
Expression AST nodes.
Expression AST nodes.
Expression AST nodes.
Expression AST nodes.
Expression AST nodes.
Expression AST nodes.
Query and clause AST nodes.
Query and clause AST nodes.
Query and clause AST nodes.
Query and clause AST nodes.
Expression AST nodes.
Query and clause AST nodes.
Query and clause AST nodes.
Expression AST nodes.
Query and clause AST nodes.
Query and clause AST nodes.
Expression AST nodes.
Expression AST nodes.
Query and clause AST nodes.
Query and clause AST nodes.
Query and clause AST nodes.
Expression AST nodes.
Query and clause AST nodes.
Query and clause AST nodes.
Query and clause AST nodes.
Expression AST nodes.
Query and clause AST nodes.
Expression AST nodes.
Query and clause AST nodes.
Expression AST nodes.
Query and clause AST nodes.
Expression AST nodes.
Query and clause AST nodes.
Query and clause AST nodes.
Query and clause AST nodes.
Package-Level Functions (total 9)
BoolLit returns a boolean literal.
Desugar normalizes q in place. A synthetic-variable counter threads
through so an anonymous node/relationship carrying a non-literal inline
property gets a stable name to compare on.
FloatLit returns a float literal.
IntLit returns an integer literal.
NamedParamLit returns a named parameter literal.
NullLit returns the null literal.
ParamLit returns an auto-lifted parameter slot literal.
Parse parses one GQL statement into an AST.
StrLit returns a string literal.
Package-Level Constants (total 51)
Cost kinds.
Cost kinds.
Cost kinds.
Relationship directions.
Relationship directions.
Relationship directions.
Query modes.
Label expression kinds.
Label expression kinds.
Label expression kinds.
Label expression kinds.
Label expression kinds.
Literal kinds.
Literal kinds.
Literal kinds.
Literal kinds.
Literal kinds.
Literal kinds.
Literal kinds.
Map-projection entry kinds.
Map-projection entry kinds.
Map-projection entry kinds.
Unary operators.
Unary operators.
Binary operators.
Binary operators.
Binary operators.
Binary operators.
Binary operators.
Binary operators.
Binary operators.
Binary operators.
Binary operators.
Binary operators.
Binary operators.
Binary operators.
Binary operators.
Binary operators.
Binary operators.
Binary operators.
Binary operators.
Query modes.
List-predicate quantifiers.
List-predicate quantifiers.
List-predicate quantifiers.
List-predicate quantifiers.
Query modes.
Union kinds.
Union kinds.
Union kinds.
Union kinds.
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |