Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrIncorrectGraphName = errors.New("incorrect graph name") ErrIncorrectLabelName = errors.New("incorrect label name") ErrIncorrectIndexName = errors.New("incorrect index name") ErrGraphNotChosen = errors.New("please choose graph first") ErrVariableReferenceNotExits = errors.New("reference not exists variable") )
Functions ¶
Types ¶
type MacroExpansion ¶
type MacroExpansion struct {
// contains filtered or unexported fields
}
MacroExpansion is used to expand the PathPatternMacros.
PATH has_parent AS () -[:has_father|has_mother]-> (:Person) SELECT ancestor.name FROM MATCH (p1:Person) -/:has_parent+/-> (ancestor) , MATCH (p2:Person) -/:has_parent+/-> (ancestor) WHERE p1.name = 'Mario' AND p2.name = 'Luigi'
The MacroExpansion will replace the `has_parent` macro.
func NewMacroExpansion ¶
func NewMacroExpansion() *MacroExpansion
type Preprocess ¶
type Preprocess struct {
// contains filtered or unexported fields
}
Preprocess is used to validate the AST to ensure the AST is valid.
func NewPreprocess ¶
func NewPreprocess(sc *stmtctx.Context) *Preprocess
NewPreprocess returns a preprocess visitor.
func (*Preprocess) Error ¶
func (p *Preprocess) Error() error
Error returns the internal error of preprocess.
type PropertyPreparation ¶
type PropertyPreparation struct {
// contains filtered or unexported fields
}
PropertyPreparation is used to create property lazily. In zGraph: only Graph/Label/Index objects are required to create explicitly. All properties will be created at the first time to be used. The PropertyPreparation will visit the whole AST and find
func NewPropertyPreparation ¶
func NewPropertyPreparation(sc *stmtctx.Context) *PropertyPreparation
func (*PropertyPreparation) CreateMissing ¶
func (p *PropertyPreparation) CreateMissing() error
CreateMissing creates the missing properties.
Click to show internal directories.
Click to hide internal directories.