-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
76 lines (57 loc) · 1.61 KB
/
types.go
File metadata and controls
76 lines (57 loc) · 1.61 KB
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
package cql
import (
"time"
"github.com/FrancoLiberali/cql/condition"
"github.com/FrancoLiberali/cql/model"
)
func Int(value int) condition.NumericValue[int] {
return condition.Int(value)
}
func Int8(value int8) condition.NumericValue[int8] {
return condition.Int8(value)
}
func Int16(value int16) condition.NumericValue[int16] {
return condition.Int16(value)
}
func Int32(value int32) condition.NumericValue[int32] {
return condition.Int32(value)
}
func Int64(value int64) condition.NumericValue[int64] {
return condition.Int64(value)
}
func UInt(value uint) condition.NumericValue[uint] {
return condition.UInt(value)
}
func UInt8(value uint8) condition.NumericValue[uint8] {
return condition.UInt8(value)
}
func UInt16(value uint16) condition.NumericValue[uint16] {
return condition.UInt16(value)
}
func UInt32(value uint32) condition.NumericValue[uint32] {
return condition.UInt32(value)
}
func UInt64(value uint64) condition.NumericValue[uint64] {
return condition.UInt64(value)
}
func Float32(value float32) condition.NumericValue[float32] {
return condition.Float32(value)
}
func Float64(value float64) condition.NumericValue[float64] {
return condition.Float64(value)
}
func Bool(value bool) condition.BoolValue {
return condition.Bool(value)
}
func String(value string) condition.Value[string] {
return condition.String(value)
}
func ByteArray(value []byte) condition.Value[[]byte] {
return condition.ByteArray(value)
}
func Time(value time.Time) condition.Value[time.Time] {
return condition.Time(value)
}
func UUID(value model.UUID) condition.Value[model.UUID] {
return condition.UUID(value)
}