Documentation
¶
Index ¶
- func Walk(v Visitor, node Node) error
- type BinaryExpr
- type BoolLit
- type CaseExpr
- type Clause
- type CreateClause
- type CreateStmt
- type DeleteClause
- type DeleteStmt
- type Direction
- type ExistsExpr
- type Expr
- type FloatLit
- type FuncCall
- type Ident
- type InExpr
- type IntegerLit
- type IsNullExpr
- type ListComprehension
- type ListExpr
- type ListIndexExpr
- type ListLit
- type ListSliceExpr
- type MapExpr
- type MapLit
- type MapPair
- type MatchClause
- type MatchStmt
- type MergeClause
- type MergeStmt
- type Node
- type NodePattern
- type NullLit
- type OrderByExpr
- type OrderByItem
- type Param
- type ParamExpr
- type PathExpr
- type Pattern
- type PatternComprehension
- type PatternExpr
- type PatternExprItem
- type PatternPart
- type Pos
- type PropertyAccessExpr
- type Query
- type RelationPattern
- type RemoveClause
- type RemoveItemExpr
- type RemoveStmt
- type ReturnClause
- type ReturnExpr
- type ReturnItemExpr
- type ReturnStmt
- type SetClause
- type SetItem
- type SetStmt
- type Stmt
- type StringLit
- type UnaryExpr
- type UnionClause
- type UnwindClause
- type UnwindStmt
- type Visitor
- type Walker
- type WhenClause
- type WhereClause
- type WhereExpr
- type WithClause
- type WithStmt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BinaryExpr ¶ added in v0.2.0
func (*BinaryExpr) End ¶ added in v0.2.0
func (e *BinaryExpr) End() Pos
func (*BinaryExpr) Position ¶ added in v0.2.0
func (e *BinaryExpr) Position() Pos
func (*BinaryExpr) String ¶ added in v0.2.0
func (e *BinaryExpr) String() string
type CaseExpr ¶ added in v0.2.0
type CaseExpr struct {
Operand Expr
Whens []*WhenClause
Else Expr
Start Pos
EndPos Pos
}
type CreateClause ¶
type CreateClause struct {
Pattern *PatternExpr
Start Pos
EndPos Pos
}
func (*CreateClause) End ¶ added in v0.2.0
func (c *CreateClause) End() Pos
func (*CreateClause) Position ¶ added in v0.2.0
func (c *CreateClause) Position() Pos
func (*CreateClause) String ¶ added in v0.2.0
func (c *CreateClause) String() string
type CreateStmt ¶ added in v0.2.0
type CreateStmt struct {
Pattern *PatternExpr
Clauses []Clause
Start Pos
EndPos Pos
}
func (*CreateStmt) End ¶ added in v0.2.0
func (s *CreateStmt) End() Pos
func (*CreateStmt) Position ¶ added in v0.2.0
func (s *CreateStmt) Position() Pos
func (*CreateStmt) String ¶ added in v0.2.0
func (s *CreateStmt) String() string
type DeleteClause ¶
func (*DeleteClause) End ¶ added in v0.2.0
func (c *DeleteClause) End() Pos
func (*DeleteClause) Position ¶ added in v0.2.0
func (c *DeleteClause) Position() Pos
func (*DeleteClause) String ¶ added in v0.2.0
func (c *DeleteClause) String() string
type DeleteStmt ¶ added in v0.2.0
func (*DeleteStmt) End ¶ added in v0.2.0
func (s *DeleteStmt) End() Pos
func (*DeleteStmt) Position ¶ added in v0.2.0
func (s *DeleteStmt) Position() Pos
func (*DeleteStmt) String ¶ added in v0.2.0
func (s *DeleteStmt) String() string
type ExistsExpr ¶ added in v0.2.0
type ExistsExpr struct {
Pattern *PatternExpr
Expr Expr
Start Pos
EndPos Pos
}
func (*ExistsExpr) End ¶ added in v0.2.0
func (e *ExistsExpr) End() Pos
func (*ExistsExpr) Position ¶ added in v0.2.0
func (e *ExistsExpr) Position() Pos
func (*ExistsExpr) String ¶ added in v0.2.0
func (e *ExistsExpr) String() string
type IntegerLit ¶ added in v0.2.0
func (*IntegerLit) End ¶ added in v0.2.0
func (e *IntegerLit) End() Pos
func (*IntegerLit) Position ¶ added in v0.2.0
func (e *IntegerLit) Position() Pos
func (*IntegerLit) String ¶ added in v0.2.0
func (e *IntegerLit) String() string
type IsNullExpr ¶ added in v0.2.0
func (*IsNullExpr) End ¶ added in v0.2.0
func (e *IsNullExpr) End() Pos
func (*IsNullExpr) Position ¶ added in v0.2.0
func (e *IsNullExpr) Position() Pos
func (*IsNullExpr) String ¶ added in v0.2.0
func (e *IsNullExpr) String() string
type ListComprehension ¶ added in v0.2.0
type ListComprehension struct {
Var string
Variable string
InExpr Expr
List Expr
Where Expr
Filter Expr
Expr Expr
Projection Expr
Start Pos
EndPos Pos
}
func (*ListComprehension) End ¶ added in v0.2.0
func (e *ListComprehension) End() Pos
func (*ListComprehension) Position ¶ added in v0.2.0
func (e *ListComprehension) Position() Pos
func (*ListComprehension) String ¶ added in v0.2.0
func (e *ListComprehension) String() string
type ListIndexExpr ¶ added in v0.2.0
func (*ListIndexExpr) End ¶ added in v0.2.0
func (e *ListIndexExpr) End() Pos
func (*ListIndexExpr) Position ¶ added in v0.2.0
func (e *ListIndexExpr) Position() Pos
func (*ListIndexExpr) String ¶ added in v0.2.0
func (e *ListIndexExpr) String() string
type ListSliceExpr ¶ added in v0.2.0
func (*ListSliceExpr) End ¶ added in v0.2.0
func (e *ListSliceExpr) End() Pos
func (*ListSliceExpr) Position ¶ added in v0.2.0
func (e *ListSliceExpr) Position() Pos
func (*ListSliceExpr) String ¶ added in v0.2.0
func (e *ListSliceExpr) String() string
type MatchClause ¶
type MatchClause struct {
Optional bool
Pattern *PatternExpr
Where *WhereExpr
Return *ReturnExpr
Delete *DeleteClause
Start Pos
EndPos Pos
}
func (*MatchClause) End ¶ added in v0.2.0
func (c *MatchClause) End() Pos
func (*MatchClause) Position ¶ added in v0.2.0
func (c *MatchClause) Position() Pos
func (*MatchClause) String ¶ added in v0.2.0
func (c *MatchClause) String() string
type MergeClause ¶ added in v0.2.0
type MergeClause struct {
Pattern *PatternExpr
OnCreate []*SetItem
OnMatch []*SetItem
Start Pos
EndPos Pos
}
func (*MergeClause) End ¶ added in v0.2.0
func (c *MergeClause) End() Pos
func (*MergeClause) Position ¶ added in v0.2.0
func (c *MergeClause) Position() Pos
func (*MergeClause) String ¶ added in v0.2.0
func (c *MergeClause) String() string
type MergeStmt ¶ added in v0.2.0
type MergeStmt struct {
Pattern *PatternExpr
Clause *MergeClause
OnCreate []*SetItem
OnMatch []*SetItem
Start Pos
EndPos Pos
}
type NodePattern ¶
type NodePattern struct {
Variable string
Labels []string
Properties map[string]Expr
PropertyExpr Expr
Start Pos
EndPos Pos
}
func (*NodePattern) End ¶ added in v0.2.0
func (n *NodePattern) End() Pos
func (*NodePattern) Position ¶ added in v0.2.0
func (n *NodePattern) Position() Pos
func (*NodePattern) String ¶ added in v0.2.0
func (n *NodePattern) String() string
type OrderByExpr ¶ added in v0.2.0
type OrderByExpr struct {
Items []*OrderByItem
Start Pos
EndPos Pos
}
func (*OrderByExpr) End ¶ added in v0.2.0
func (c *OrderByExpr) End() Pos
func (*OrderByExpr) Position ¶ added in v0.2.0
func (c *OrderByExpr) Position() Pos
func (*OrderByExpr) String ¶ added in v0.2.0
func (c *OrderByExpr) String() string
type OrderByItem ¶ added in v0.2.0
func (*OrderByItem) End ¶ added in v0.2.0
func (c *OrderByItem) End() Pos
func (*OrderByItem) Position ¶ added in v0.2.0
func (c *OrderByItem) Position() Pos
func (*OrderByItem) String ¶ added in v0.2.0
func (c *OrderByItem) String() string
type PathExpr ¶ added in v0.2.0
type PathExpr struct {
Nodes []*NodePattern
Relationships []*RelationPattern
Start Pos
EndPos Pos
}
type PatternComprehension ¶ added in v0.2.0
type PatternComprehension struct {
Pattern *PatternExpr
Where Expr
Expr Expr
Start Pos
EndPos Pos
}
func (*PatternComprehension) End ¶ added in v0.2.0
func (p *PatternComprehension) End() Pos
func (*PatternComprehension) Position ¶ added in v0.2.0
func (p *PatternComprehension) Position() Pos
func (*PatternComprehension) String ¶ added in v0.2.0
func (p *PatternComprehension) String() string
type PatternExpr ¶ added in v0.2.0
type PatternExpr struct {
Parts []*PatternPart
Paths []*PathExpr
Start Pos
EndPos Pos
}
func (*PatternExpr) End ¶ added in v0.2.0
func (p *PatternExpr) End() Pos
func (*PatternExpr) Position ¶ added in v0.2.0
func (p *PatternExpr) Position() Pos
func (*PatternExpr) String ¶ added in v0.2.0
func (p *PatternExpr) String() string
type PatternExprItem ¶ added in v0.2.0
func (*PatternExprItem) End ¶ added in v0.2.0
func (p *PatternExprItem) End() Pos
func (*PatternExprItem) Position ¶ added in v0.2.0
func (p *PatternExprItem) Position() Pos
func (*PatternExprItem) String ¶ added in v0.2.0
func (p *PatternExprItem) String() string
type PatternPart ¶ added in v0.2.0
func (*PatternPart) End ¶ added in v0.2.0
func (p *PatternPart) End() Pos
func (*PatternPart) Position ¶ added in v0.2.0
func (p *PatternPart) Position() Pos
func (*PatternPart) String ¶ added in v0.2.0
func (p *PatternPart) String() string
type PropertyAccessExpr ¶ added in v0.2.0
func (*PropertyAccessExpr) End ¶ added in v0.2.0
func (e *PropertyAccessExpr) End() Pos
func (*PropertyAccessExpr) Position ¶ added in v0.2.0
func (e *PropertyAccessExpr) Position() Pos
func (*PropertyAccessExpr) String ¶ added in v0.2.0
func (e *PropertyAccessExpr) String() string
type RelationPattern ¶
type RelationPattern struct {
Variable string
Types []string
Direction Direction
Properties map[string]Expr
MinHops *int
MaxHops *int
VariableLength bool
RightArrow bool
LeftArrow bool
Start Pos
EndPos Pos
}
func (*RelationPattern) End ¶ added in v0.2.0
func (r *RelationPattern) End() Pos
func (*RelationPattern) Position ¶ added in v0.2.0
func (r *RelationPattern) Position() Pos
func (*RelationPattern) String ¶ added in v0.2.0
func (r *RelationPattern) String() string
type RemoveClause ¶
type RemoveClause struct {
Items []*RemoveItemExpr
Start Pos
EndPos Pos
}
func (*RemoveClause) End ¶ added in v0.2.0
func (c *RemoveClause) End() Pos
func (*RemoveClause) Position ¶ added in v0.2.0
func (c *RemoveClause) Position() Pos
func (*RemoveClause) String ¶ added in v0.2.0
func (c *RemoveClause) String() string
type RemoveItemExpr ¶ added in v0.2.0
func (*RemoveItemExpr) End ¶ added in v0.2.0
func (r *RemoveItemExpr) End() Pos
func (*RemoveItemExpr) Position ¶ added in v0.2.0
func (r *RemoveItemExpr) Position() Pos
func (*RemoveItemExpr) String ¶ added in v0.2.0
func (r *RemoveItemExpr) String() string
type RemoveStmt ¶ added in v0.2.0
type RemoveStmt struct {
Items []*RemoveItemExpr
Start Pos
EndPos Pos
}
func (*RemoveStmt) End ¶ added in v0.2.0
func (s *RemoveStmt) End() Pos
func (*RemoveStmt) Position ¶ added in v0.2.0
func (s *RemoveStmt) Position() Pos
func (*RemoveStmt) String ¶ added in v0.2.0
func (s *RemoveStmt) String() string
type ReturnClause ¶
type ReturnClause struct {
Items []*ReturnItemExpr
Distinct bool
OrderBy *OrderByExpr
Skip Expr
Limit Expr
Start Pos
EndPos Pos
}
func (*ReturnClause) End ¶ added in v0.2.0
func (c *ReturnClause) End() Pos
func (*ReturnClause) Position ¶ added in v0.2.0
func (c *ReturnClause) Position() Pos
func (*ReturnClause) String ¶ added in v0.2.0
func (c *ReturnClause) String() string
type ReturnExpr ¶ added in v0.2.0
type ReturnExpr struct {
Items []*ReturnItemExpr
Distinct bool
OrderBy *OrderByExpr
Skip Expr
Limit Expr
Start Pos
EndPos Pos
}
func (*ReturnExpr) End ¶ added in v0.2.0
func (c *ReturnExpr) End() Pos
func (*ReturnExpr) Position ¶ added in v0.2.0
func (c *ReturnExpr) Position() Pos
func (*ReturnExpr) String ¶ added in v0.2.0
func (c *ReturnExpr) String() string
type ReturnItemExpr ¶ added in v0.2.0
func (*ReturnItemExpr) End ¶ added in v0.2.0
func (c *ReturnItemExpr) End() Pos
func (*ReturnItemExpr) Position ¶ added in v0.2.0
func (c *ReturnItemExpr) Position() Pos
func (*ReturnItemExpr) String ¶ added in v0.2.0
func (c *ReturnItemExpr) String() string
type ReturnStmt ¶ added in v0.2.0
type ReturnStmt struct {
Distinct bool
Items []*ReturnItemExpr
OrderBy *OrderByExpr
Skip Expr
Limit Expr
Return *ReturnExpr
Start Pos
EndPos Pos
}
func (*ReturnStmt) End ¶ added in v0.2.0
func (s *ReturnStmt) End() Pos
func (*ReturnStmt) Position ¶ added in v0.2.0
func (s *ReturnStmt) Position() Pos
func (*ReturnStmt) String ¶ added in v0.2.0
func (s *ReturnStmt) String() string
type UnionClause ¶ added in v0.2.0
func (*UnionClause) End ¶ added in v0.2.0
func (c *UnionClause) End() Pos
func (*UnionClause) Position ¶ added in v0.2.0
func (c *UnionClause) Position() Pos
func (*UnionClause) String ¶ added in v0.2.0
func (c *UnionClause) String() string
type UnwindClause ¶ added in v0.2.0
func (*UnwindClause) End ¶ added in v0.2.0
func (c *UnwindClause) End() Pos
func (*UnwindClause) Position ¶ added in v0.2.0
func (c *UnwindClause) Position() Pos
func (*UnwindClause) String ¶ added in v0.2.0
func (c *UnwindClause) String() string
type UnwindStmt ¶ added in v0.2.0
type UnwindStmt struct {
List Expr
Variable string
Return *ReturnExpr
Start Pos
EndPos Pos
}
func (*UnwindStmt) End ¶ added in v0.2.0
func (s *UnwindStmt) End() Pos
func (*UnwindStmt) Position ¶ added in v0.2.0
func (s *UnwindStmt) Position() Pos
func (*UnwindStmt) String ¶ added in v0.2.0
func (s *UnwindStmt) String() string
type WhenClause ¶ added in v0.2.0
func (*WhenClause) End ¶ added in v0.2.0
func (c *WhenClause) End() Pos
func (*WhenClause) Position ¶ added in v0.2.0
func (c *WhenClause) Position() Pos
func (*WhenClause) String ¶ added in v0.2.0
func (c *WhenClause) String() string
type WhereClause ¶
func (*WhereClause) End ¶ added in v0.2.0
func (c *WhereClause) End() Pos
func (*WhereClause) Position ¶ added in v0.2.0
func (c *WhereClause) Position() Pos
func (*WhereClause) String ¶ added in v0.2.0
func (c *WhereClause) String() string
type WithClause ¶ added in v0.2.0
type WithClause struct {
Items []*ReturnItemExpr
Distinct bool
OrderBy *OrderByExpr
Skip Expr
Limit Expr
Where Expr
Start Pos
EndPos Pos
}
func (*WithClause) End ¶ added in v0.2.0
func (c *WithClause) End() Pos
func (*WithClause) Position ¶ added in v0.2.0
func (c *WithClause) Position() Pos
func (*WithClause) String ¶ added in v0.2.0
func (c *WithClause) String() string
type WithStmt ¶ added in v0.2.0
type WithStmt struct {
Items []*ReturnItemExpr
Distinct bool
OrderBy *OrderByExpr
Skip Expr
Limit Expr
Where Expr
Start Pos
EndPos Pos
}
Click to show internal directories.
Click to hide internal directories.