Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assignment ¶
type Assignment struct {
VariableRef *VariableRef
PropertyRef *PropertyRef
Expr Expression
}
Assignment represents an assignment in INSERT/UPDATE statements.
e.g: INSERT VERTEX x LABELS ( Male ) PROPERTIES ( x.age = 22 ) UPDATE x SET ( x.age = 42 ) FROM MATCH (x:Person) WHERE x.name = 'John'
type BinaryEvalOp ¶
type BinaryExpr ¶
type BinaryExpr struct {
Op opcode.Op
Left Expression
Right Expression
EvalOp BinaryEvalOp
}
func NewBinaryExpr ¶
func NewBinaryExpr(op opcode.Op, left, right Expression) (*BinaryExpr, error)
func (*BinaryExpr) ReturnType ¶
func (expr *BinaryExpr) ReturnType() types.T
func (*BinaryExpr) String ¶
func (expr *BinaryExpr) String() string
type CastExpr ¶
type CastExpr struct {
Expr Expression
Type types.T
}
func NewCastExpr ¶
func NewCastExpr(expr Expression, typ types.T) *CastExpr
func (*CastExpr) ReturnType ¶
type Constant ¶
Constant represents a literal constant.
func (*Constant) ReturnType ¶
type Expression ¶
type FuncExpr ¶
type FuncExpr struct {
Name string
Args []Expression
Fn Function
}
func NewFuncExpr ¶
func NewFuncExpr(name string, args ...Expression) (*FuncExpr, error)
func (*FuncExpr) ReturnType ¶
type PropertyAccess ¶
type PropertyAccess struct {
Expr Expression
VariableName model.CIStr
PropertyName model.CIStr
}
PropertyAccess represents a property access expression.
func (*PropertyAccess) ReturnType ¶
func (p *PropertyAccess) ReturnType() types.T
func (*PropertyAccess) String ¶
func (p *PropertyAccess) String() string
type PropertyRef ¶
type PropertyRef struct {
Property *model.PropertyInfo
}
PropertyRef represents the accessor of vertex/edge's property.
func (*PropertyRef) Clone ¶
func (f *PropertyRef) Clone() *PropertyRef
func (*PropertyRef) String ¶
func (f *PropertyRef) String() string
String implements the fmt.Stringer interface
type UnaryEvalOp ¶
type UnaryExpr ¶
type UnaryExpr struct {
Op opcode.Op
Expr Expression
EvalOp UnaryEvalOp
}
func NewUnaryExpr ¶
func NewUnaryExpr(op opcode.Op, expr Expression) (*UnaryExpr, error)
func (*UnaryExpr) ReturnType ¶
type VariableRef ¶
VariableRef represents a variable referenced by other scope.
e.g: INSERT VERTEX x LABELS ( Male ) PROPERTIES ( x.age = 22 ) --------------^------------------------------^----------
func (*VariableRef) String ¶
func (v *VariableRef) String() string
Click to show internal directories.
Click to hide internal directories.