Documentation
¶
Index ¶
- Variables
- func ConfigureMerge(o *Merge, configurer MergeOption)
- func ConfigureProjectionBody(p *ProjectionBody, configurer ProjectionBodyOption)
- func ConfigureVariable(v *Variable, configurer VariableOption)
- func ConfigureWhere(w *Where, configurer WhereOption)
- func ExtractConcreteNodeLabels(i any) []string
- func ExtractNodeLabels(i any) []string
- func ExtractRelationshipType(relationship any) string
- type Abstract
- type CompiledCypher
- type Condition
- type Configurer
- type CypherClient
- func (c CypherClient) Bindings() map[string]reflect.Value
- func (c CypherClient) Params() map[string]any
- func (c *CypherClient) Union(unions ...func(c *CypherClient) *CypherRunner) *CypherQuerier
- func (c *CypherClient) UnionAll(unions ...func(c *CypherClient) *CypherRunner) *CypherQuerier
- func (c *CypherClient) Use(graphExpr string) *CypherQuerier
- type CypherPath
- type CypherPattern
- type CypherQuerier
- type CypherReader
- func (c CypherReader) Bindings() map[string]reflect.Value
- func (c *CypherReader) Call(procedure string) *CypherYielder
- func (c *CypherReader) Cypher(query string) *CypherQuerier
- func (c *CypherReader) Eval(expression func(*Scope, *strings.Builder)) *CypherQuerier
- func (c *CypherReader) Match(patterns Patterns) *CypherQuerier
- func (c *CypherReader) OptionalMatch(patterns Patterns) *CypherQuerier
- func (c CypherReader) Params() map[string]any
- func (c *CypherReader) Return(identifiers ...any) *CypherRunner
- func (c *CypherReader) Show(command string) *CypherYielder
- func (c *CypherReader) Subquery(subquery func(c *CypherClient) *CypherRunner) *CypherQuerier
- func (c *CypherReader) Unwind(identifier any, as string) *CypherQuerier
- func (c *CypherReader) With(identifiers ...any) *CypherQuerier
- type CypherRunner
- type CypherUpdater
- func (c CypherUpdater) Bindings() map[string]reflect.Value
- func (c *CypherUpdater[To]) Create(pattern Patterns) To
- func (c *CypherUpdater[To]) Delete(identifiers ...any) To
- func (c *CypherUpdater[To]) DetachDelete(propIdentifiers ...any) To
- func (c *CypherUpdater[To]) ForEach(identifier, elementsExpr any, do func(c *CypherUpdater[any])) To
- func (c *CypherUpdater[To]) Merge(pattern Pattern, opts ...MergeOption) To
- func (c CypherUpdater) Params() map[string]any
- func (c *CypherUpdater[To]) Remove(items ...RemoveItem) To
- func (c *CypherUpdater[To]) Set(items ...SetItem) To
- type CypherYielder
- type Expr
- type IAbstract
- type ICondition
- type IDSetter
- type INode
- type IRelationship
- type Label
- type Merge
- type MergeOption
- type Node
- type Param
- type Pattern
- type Patterns
- type ProjectionBody
- type ProjectionBodyOption
- type Props
- type Relationship
- type RemoveItem
- type Scope
- type SetItem
- type Variable
- type VariableOption
- type Where
- type WhereOption
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ConfigureMerge ¶
func ConfigureMerge(o *Merge, configurer MergeOption)
func ConfigureProjectionBody ¶
func ConfigureProjectionBody(p *ProjectionBody, configurer ProjectionBodyOption)
func ConfigureVariable ¶
func ConfigureVariable(v *Variable, configurer VariableOption)
func ConfigureWhere ¶
func ConfigureWhere(w *Where, configurer WhereOption)
func ExtractConcreteNodeLabels ¶ added in v1.0.2
func ExtractNodeLabels ¶
func ExtractRelationshipType ¶
Types ¶
type CompiledCypher ¶
type Condition ¶
type Configurer ¶
type Configurer struct {
Merge func(*Merge)
Variable func(*Variable)
ProjectionBody func(*ProjectionBody)
Where func(*Where)
}
type CypherClient ¶
type CypherClient struct {
*CypherReader
*CypherUpdater[*CypherQuerier]
// contains filtered or unexported fields
}
func NewCypherClient ¶
func NewCypherClient() *CypherClient
func (*CypherClient) Union ¶
func (c *CypherClient) Union(unions ...func(c *CypherClient) *CypherRunner) *CypherQuerier
func (*CypherClient) UnionAll ¶
func (c *CypherClient) UnionAll(unions ...func(c *CypherClient) *CypherRunner) *CypherQuerier
func (*CypherClient) Use ¶
func (c *CypherClient) Use(graphExpr string) *CypherQuerier
type CypherPath ¶
type CypherPath struct {
// contains filtered or unexported fields
}
func (*CypherPath) Condition ¶
func (c *CypherPath) Condition() *Condition
func (*CypherPath) From ¶
func (c *CypherPath) From(relationshipMatch, nodeMatch any) Pattern
func (*CypherPath) Related ¶
func (c *CypherPath) Related(relationshipMatch, nodeMatch any) Pattern
func (*CypherPath) To ¶
func (c *CypherPath) To(relationshipMatch, nodeMatch any) Pattern
type CypherPattern ¶
type CypherPattern struct {
// contains filtered or unexported fields
}
type CypherQuerier ¶
type CypherQuerier struct {
*CypherReader
*CypherRunner
*CypherUpdater[*CypherQuerier]
// contains filtered or unexported fields
}
func (*CypherQuerier) Where ¶
func (c *CypherQuerier) Where(opts ...WhereOption) *CypherQuerier
type CypherReader ¶
type CypherReader struct {
*CypherRunner
Parent *Scope
// contains filtered or unexported fields
}
func (*CypherReader) Call ¶
func (c *CypherReader) Call(procedure string) *CypherYielder
func (*CypherReader) Cypher ¶
func (c *CypherReader) Cypher(query string) *CypherQuerier
func (*CypherReader) Eval ¶
func (c *CypherReader) Eval(expression func(*Scope, *strings.Builder)) *CypherQuerier
func (*CypherReader) Match ¶
func (c *CypherReader) Match(patterns Patterns) *CypherQuerier
func (*CypherReader) OptionalMatch ¶
func (c *CypherReader) OptionalMatch(patterns Patterns) *CypherQuerier
func (*CypherReader) Return ¶
func (c *CypherReader) Return(identifiers ...any) *CypherRunner
func (*CypherReader) Show ¶
func (c *CypherReader) Show(command string) *CypherYielder
func (*CypherReader) Subquery ¶
func (c *CypherReader) Subquery(subquery func(c *CypherClient) *CypherRunner) *CypherQuerier
func (*CypherReader) Unwind ¶
func (c *CypherReader) Unwind(identifier any, as string) *CypherQuerier
func (*CypherReader) With ¶
func (c *CypherReader) With(identifiers ...any) *CypherQuerier
type CypherRunner ¶
type CypherRunner struct {
// contains filtered or unexported fields
}
func (*CypherRunner) Compile ¶
func (c *CypherRunner) Compile() (*CompiledCypher, error)
func (*CypherRunner) CompileWithParams ¶
func (c *CypherRunner) CompileWithParams(params map[string]any) (*CompiledCypher, error)
type CypherUpdater ¶
type CypherUpdater[To any] struct { *CypherRunner To func(*cypher) To // contains filtered or unexported fields }
func (*CypherUpdater[To]) Create ¶
func (c *CypherUpdater[To]) Create(pattern Patterns) To
func (*CypherUpdater[To]) Delete ¶
func (c *CypherUpdater[To]) Delete(identifiers ...any) To
func (*CypherUpdater[To]) DetachDelete ¶
func (c *CypherUpdater[To]) DetachDelete(propIdentifiers ...any) To
func (*CypherUpdater[To]) ForEach ¶
func (c *CypherUpdater[To]) ForEach(identifier, elementsExpr any, do func(c *CypherUpdater[any])) To
func (*CypherUpdater[To]) Merge ¶
func (c *CypherUpdater[To]) Merge(pattern Pattern, opts ...MergeOption) To
func (*CypherUpdater[To]) Remove ¶
func (c *CypherUpdater[To]) Remove(items ...RemoveItem) To
func (*CypherUpdater[To]) Set ¶
func (c *CypherUpdater[To]) Set(items ...SetItem) To
type CypherYielder ¶
type CypherYielder struct {
*CypherQuerier
// contains filtered or unexported fields
}
func (*CypherYielder) Yield ¶
func (c *CypherYielder) Yield(identifiers ...any) *CypherQuerier
type ICondition ¶
type ICondition interface {
WhereOption
Condition() *Condition
}
type IRelationship ¶
type IRelationship interface {
IsRelationship()
}
type MergeOption ¶
type MergeOption interface {
// contains filtered or unexported methods
}
type Node ¶
type Node struct {
ID string `json:"id"`
}
func (*Node) GenerateID ¶
func (n *Node) GenerateID()
type Pattern ¶
type ProjectionBody ¶
type ProjectionBodyOption ¶
type ProjectionBodyOption interface {
// contains filtered or unexported methods
}
type Relationship ¶
type Relationship struct{}
func (Relationship) IsRelationship ¶
func (Relationship) IsRelationship()
type RemoveItem ¶
type Scope ¶
type Scope struct {
// contains filtered or unexported fields
}
func (*Scope) MergeChildScope ¶
type VariableOption ¶
type VariableOption interface {
// contains filtered or unexported methods
}
type WhereOption ¶
type WhereOption interface {
// contains filtered or unexported methods
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.