forked from mindstand/go-cypherdsl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clause.go
96 lines (78 loc) · 1.29 KB
/
clause.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package go_cypherdsl
type Cypher interface {
Match
OptionalMatch
Create
Where
Merge
Return
Delete
Set
Remove
OrderBy
Limit
Skip
With
Unwind
Union
CustomCypher
QueryCompleter
}
//complete
type Match interface {
Match(p *PathBuilder) Cypher
}
type OptionalMatch interface {
OptionalMatch(p *PathBuilder) Cypher
}
//complete
type Create interface {
Create(CreateQuery, error) Cypher
}
//complete
type Where interface {
Where(cb ConditionOperator) Cypher
}
//complete
type Merge interface {
Merge(mergeConf *MergeConfig) Cypher
}
//complete
type Return interface {
Return(distinct bool, parts ...ReturnPart) Cypher
}
//complete
type Delete interface {
Delete(detach bool, params ...string) Cypher
}
//complete
type Set interface {
Set(sets ...SetConfig) Cypher
}
type Remove interface {
Remove(removes ...RemoveConfig) Cypher
}
type OrderBy interface {
OrderBy(orderBys ...OrderByConfig) Cypher
}
type Limit interface {
Limit(num int) Cypher
}
type Skip interface {
Skip(num int) Cypher
}
type With interface {
With(conf *WithConfig) Cypher
}
type Unwind interface {
Unwind(unwind *UnwindConfig) Cypher
}
type Union interface {
Union(all bool) Cypher
}
type CustomCypher interface {
Cypher(q string) Cypher
}
type QueryCompleter interface {
ToCypher() (string, error)
}