forked from go-gorm/gen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbool.go
43 lines (32 loc) · 769 Bytes
/
bool.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
package field
type Bool Field
func (field Bool) Not() Bool {
return Bool{field.not()}
}
func (field Bool) Is(value bool) Expr {
return field.is(value)
}
func (field Bool) And(value bool) Expr {
return Bool{field.and(value)}
}
func (field Bool) Or(value bool) Expr {
return Bool{field.or(value)}
}
func (field Bool) Xor(value bool) Expr {
return Bool{field.xor(value)}
}
func (field Bool) BitXor(value bool) Expr {
return Bool{field.bitXor(value)}
}
func (field Bool) BitAnd(value bool) Expr {
return Bool{field.bitAnd(value)}
}
func (field Bool) BitOr(value bool) Expr {
return Bool{field.bitOr(value)}
}
func (field Bool) Value(value bool) AssignExpr {
return field.value(value)
}
func (field Bool) Zero() AssignExpr {
return field.value(false)
}