-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcondition.go
61 lines (45 loc) · 1.04 KB
/
condition.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
package q
type Condition interface {
conditionIdentity()
}
type ColumnCompareCondition struct {
rightColumn IColumn
operationalImpl
}
func (c *ColumnCompareCondition) conditionIdentity() {}
type ListValueCondition struct {
values []any
operationalImpl
}
func (l *ListValueCondition) conditionIdentity() {}
type NoValueCondition struct {
operationalImpl
}
func (n *NoValueCondition) conditionIdentity() {}
type SingleValueCondition struct {
value any
operationalImpl
}
func (s *SingleValueCondition) conditionIdentity() {}
type TwoValueCondition struct {
value1 any
value2 any
operator1 string
operator2 string
}
func (t *TwoValueCondition) conditionIdentity() {}
func (t *TwoValueCondition) Operator1() string {
return t.operator1
}
func (t *TwoValueCondition) Operator2() string {
return t.operator2
}
type SubSelectCondition struct {
subSelect *Selection
operationalImpl
}
func (s *SubSelectCondition) conditionIdentity() {}
type ExistsPredicate struct {
selectionBuilder Builder[*Selection]
operator string
}