Versions in this module Expand all Collapse all v0 v0.2.0 Jul 23, 2020 v0.1.1 May 24, 2020 Changes in this version + const SetEqualTo + const SetMutate + func RowsTo2dStringArray(data [][]interface{}) ([][]string, error) + func RowsToStringArray(data [][]interface{}) ([]string, error) + func SetLogger(logger *logrus.Entry) error + type BooleanOperator string + const ContainsOperator + const EndsWithOperator + const EqualToOperator + const GreaterThanOperator + const GreaterThanOrEqualToOperator + const InOperator + const IsOperator + const LessThanOperator + const LessThanOrEqualToOperator + const RegexEqualToOperator + const StartsWithOperator + type ConditionBuilder struct + Current *conditionNode + Start *operatorNode + func (c *ConditionBuilder) And(condition *ConditionConfig) ConditionOperator + func (c *ConditionBuilder) AndNested(query WhereQuery, err error) ConditionOperator + func (c *ConditionBuilder) Build() (WhereQuery, error) + func (c *ConditionBuilder) Not(condition *ConditionConfig) ConditionOperator + func (c *ConditionBuilder) NotNested(query WhereQuery, err error) ConditionOperator + func (c *ConditionBuilder) Or(condition *ConditionConfig) ConditionOperator + func (c *ConditionBuilder) OrNested(query WhereQuery, err error) ConditionOperator + func (c *ConditionBuilder) Xor(condition *ConditionConfig) ConditionOperator + func (c *ConditionBuilder) XorNested(query WhereQuery, err error) ConditionOperator + type ConditionConfig struct + Check interface{} + CheckSlice []interface{} + ConditionFunction string + ConditionOperator BooleanOperator + Field string + FieldManipulationFunction string + Label string + Name string + func (condition *ConditionConfig) ToString() (string, error) + type ConditionOperator interface + And func(c *ConditionConfig) ConditionOperator + AndNested func(query WhereQuery, err error) ConditionOperator + Build func() (WhereQuery, error) + Not func(c *ConditionConfig) ConditionOperator + NotNested func(query WhereQuery, err error) ConditionOperator + Or func(c *ConditionConfig) ConditionOperator + OrNested func(query WhereQuery, err error) ConditionOperator + Xor func(c *ConditionConfig) ConditionOperator + XorNested func(query WhereQuery, err error) ConditionOperator + func C(condition *ConditionConfig) ConditionOperator + type ConstraintConfig struct + Exists bool + Field string + Name string + Type string + Unique bool + type Create interface + Create func(CreateQuery, error) Cypher + type CreateQuery string + func NewConstraint(constraint *ConstraintConfig) (CreateQuery, error) + func NewIndex(index *IndexConfig) (CreateQuery, error) + func NewNode(builder *PathBuilder) (CreateQuery, error) + func (c *CreateQuery) ToString() string + type CustomCypher interface + Cypher func(q string) Cypher + type Cypher interface + type Cypherize interface + ToCypher func() (string, error) + type Delete interface + Delete func(detach bool, params ...string) Cypher + type DeleteQuery string + func (c *DeleteQuery) ToString() string + type Direction int + const DirectionBoth + const DirectionIncoming + const DirectionNone + const DirectionOutgoing + func (d Direction) ToString() string + func (d Direction) ToStringClause(clause string) string + type E struct + Direction Direction + MaxJumps int + MinJumps int + Name string + Params *Params + Types []string + func (e *E) ToCypher() (string, error) + type EdgeConfig struct + EndNode int64 + StartNode int64 + Type string + type EdgeStep struct + func (e *EdgeStep) Done() *PathBuilder + func (e *EdgeStep) V(vertices ...V) *VertexStep + type FunctionConfig struct + Name string + Params []interface{} + func (f *FunctionConfig) ToString() (string, error) + type IndexConfig struct + Fields []string + Type string + type Limit interface + Limit func(num int) Cypher + type Match interface + Match func(p *PathBuilder) Cypher + type Merge interface + Merge func(mergeConf *MergeConfig) Cypher + type MergeConfig struct + OnCreate *MergeSetConfig + OnMatch *MergeSetConfig + Path string + func (m *MergeConfig) ToString() (string, error) + type MergeQuery string + func (c *MergeQuery) ToString() string + type MergeSetConfig struct + Member string + Name string + Target interface{} + TargetFunction *FunctionConfig + func (m *MergeSetConfig) ToString() (string, error) + type OptionalMatch interface + OptionalMatch func(p *PathBuilder) Cypher + type OrderBy interface + OrderBy func(orderBys ...OrderByConfig) Cypher + type OrderByConfig struct + Desc bool + Member string + Name string + func (o *OrderByConfig) ToString() (string, error) + type PStep struct + func (p *PStep) Done() *PathBuilder + func (p *PStep) V(vertices ...V) *PathBuilder + type ParamString string + func (p *ParamString) ToString() string + type Params struct + func ParamsFromMap(m map[string]interface{}) (*Params, error) + func (p *Params) IsEmpty() bool + func (p *Params) Set(key string, value interface{}) error + func (p *Params) ToCypherMap() string + type PathBuilder struct + func NewPath() *PathBuilder + func Path() *PathBuilder + func (m *PathBuilder) P() *PathBuilder + func (m *PathBuilder) ToCypher() (string, error) + func (m *PathBuilder) V(vertices ...V) *VertexStep + type QueryBuilder struct + Current *queryPartNode + Start *queryPartNode + func QB() *QueryBuilder + func (q *QueryBuilder) Create(c CreateQuery, err error) Cypher + func (q *QueryBuilder) Cypher(c string) Cypher + func (q *QueryBuilder) Delete(detach bool, params ...string) Cypher + func (q *QueryBuilder) Exec(params map[string]interface{}) (connection.IResult, error) + func (q *QueryBuilder) Limit(num int) Cypher + func (q *QueryBuilder) Match(p *PathBuilder) Cypher + func (q *QueryBuilder) Merge(mergeConf *MergeConfig) Cypher + func (q *QueryBuilder) OptionalMatch(p *PathBuilder) Cypher + func (q *QueryBuilder) OrderBy(orderBys ...OrderByConfig) Cypher + func (q *QueryBuilder) Query(params map[string]interface{}) ([][]interface{}, error) + func (q *QueryBuilder) Remove(removes ...RemoveConfig) Cypher + func (q *QueryBuilder) Return(distinct bool, parts ...ReturnPart) Cypher + func (q *QueryBuilder) Set(sets ...SetConfig) Cypher + func (q *QueryBuilder) Skip(num int) Cypher + func (q *QueryBuilder) ToCypher() (string, error) + func (q *QueryBuilder) Union(all bool) Cypher + func (q *QueryBuilder) Unwind(unwind *UnwindConfig) Cypher + func (q *QueryBuilder) Where(cb ConditionOperator) Cypher + func (q *QueryBuilder) With(conf *WithConfig) Cypher + func (q *QueryBuilder) WithNeo(conn connection.IQuery) Cypher + type QueryCompleter interface + Exec func(params map[string]interface{}) (connection.IResult, error) + Query func(params map[string]interface{}) ([][]interface{}, error) + ToCypher func() (string, error) + WithNeo func(conn connection.IQuery) Cypher + type Remove interface + Remove func(removes ...RemoveConfig) Cypher + type RemoveConfig struct + Field string + Labels []string + Name string + func (r *RemoveConfig) ToString() (string, error) + type RemoveQuery string + func (c *RemoveQuery) ToString() string + type Return interface + Return func(distinct bool, parts ...ReturnPart) Cypher + type ReturnPart struct + Alias string + BooleanExpression WhereQuery + Function *FunctionConfig + Literal interface{} + Name string + Path string + Type string + func (r *ReturnPart) ToString() (string, error) + type ReturnQuery string + func NewReturnClause(distinct bool, parts ...ReturnPart) (ReturnQuery, error) + func (c *ReturnQuery) ToString() string + type Set interface + Set func(sets ...SetConfig) Cypher + type SetConfig struct + Condition ConditionOperator + Label []string + Member string + Name string + Operation SetOperation + Target interface{} + TargetFunction *FunctionConfig + TargetMap *Params + func (s *SetConfig) ToString() (string, error) + type SetOperation string + type SetQuery string + func (c *SetQuery) ToString() string + type Skip interface + Skip func(num int) Cypher + type Union interface + Union func(all bool) Cypher + type Unwind interface + Unwind func(unwind *UnwindConfig) Cypher + type UnwindConfig struct + As string + Slice []interface{} + func (u *UnwindConfig) ToString() (string, error) + type V struct + Name string + Params *Params + Type string + func (v *V) ToCypher() (string, error) + type VertexStep struct + func (v *VertexStep) Build() *PathBuilder + func (v *VertexStep) E(edge E) *EdgeStep + func (v *VertexStep) ToCypher() (string, error) + type Where interface + Where func(cb ConditionOperator) Cypher + type WhereQuery string + func NewCondition(condition *ConditionConfig) (WhereQuery, error) + func (c *WhereQuery) ToString() string + type With interface + With func(conf *WithConfig) Cypher + type WithConfig struct + Parts []WithPart + func (w *WithConfig) ToString() (string, error) + type WithPart struct + As string + Field string + Function *FunctionConfig + Name string + func (wp *WithPart) ToString() (string, error)