-
-
Notifications
You must be signed in to change notification settings - Fork 177
/
gen_string.go
157 lines (133 loc) · 4.48 KB
/
gen_string.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
// Code generated by "stringer -type=QType,MType,SelType,SkipType,PagingType,AggregrateOp,ValType -output=./gen_string.go"; DO NOT EDIT.
package qcode
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[QTUnknown-0]
_ = x[QTQuery-1]
_ = x[QTSubscription-2]
_ = x[QTMutation-3]
_ = x[QTInsert-4]
_ = x[QTUpdate-5]
_ = x[QTDelete-6]
_ = x[QTUpsert-7]
}
const _QType_name = "QTUnknownQTQueryQTSubscriptionQTMutationQTInsertQTUpdateQTDeleteQTUpsert"
var _QType_index = [...]uint8{0, 9, 16, 30, 40, 48, 56, 64, 72}
func (i QType) String() string {
if i < 0 || i >= QType(len(_QType_index)-1) {
return "QType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _QType_name[_QType_index[i]:_QType_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[MTInsert-1]
_ = x[MTUpdate-2]
_ = x[MTUpsert-3]
_ = x[MTDelete-4]
_ = x[MTConnect-5]
_ = x[MTDisconnect-6]
_ = x[MTNone-7]
_ = x[MTKeyword-8]
}
const _MType_name = "MTInsertMTUpdateMTUpsertMTDeleteMTConnectMTDisconnectMTNoneMTKeyword"
var _MType_index = [...]uint8{0, 8, 16, 24, 32, 41, 53, 59, 68}
func (i MType) String() string {
i -= 1
if i >= MType(len(_MType_index)-1) {
return "MType(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _MType_name[_MType_index[i]:_MType_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[SelTypeNone-0]
_ = x[SelTypeUnion-1]
_ = x[SelTypeMember-2]
}
const _SelType_name = "SelTypeNoneSelTypeUnionSelTypeMember"
var _SelType_index = [...]uint8{0, 11, 23, 36}
func (i SelType) String() string {
if i < 0 || i >= SelType(len(_SelType_index)-1) {
return "SelType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _SelType_name[_SelType_index[i]:_SelType_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[SkipTypeNone-0]
_ = x[SkipTypeUserNeeded-1]
_ = x[SkipTypeRemote-2]
}
const _SkipType_name = "SkipTypeNoneSkipTypeUserNeededSkipTypeRemote"
var _SkipType_index = [...]uint8{0, 12, 30, 44}
func (i SkipType) String() string {
if i < 0 || i >= SkipType(len(_SkipType_index)-1) {
return "SkipType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _SkipType_name[_SkipType_index[i]:_SkipType_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[PTOffset-0]
_ = x[PTForward-1]
_ = x[PTBackward-2]
}
const _PagingType_name = "PTOffsetPTForwardPTBackward"
var _PagingType_index = [...]uint8{0, 8, 17, 27}
func (i PagingType) String() string {
if i < 0 || i >= PagingType(len(_PagingType_index)-1) {
return "PagingType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _PagingType_name[_PagingType_index[i]:_PagingType_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[AgCount-1]
_ = x[AgSum-2]
_ = x[AgAvg-3]
_ = x[AgMax-4]
_ = x[AgMin-5]
}
const _AggregrateOp_name = "AgCountAgSumAgAvgAgMaxAgMin"
var _AggregrateOp_index = [...]uint8{0, 7, 12, 17, 22, 27}
func (i AggregrateOp) String() string {
i -= 1
if i < 0 || i >= AggregrateOp(len(_AggregrateOp_index)-1) {
return "AggregrateOp(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _AggregrateOp_name[_AggregrateOp_index[i]:_AggregrateOp_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[ValStr-1]
_ = x[ValNum-2]
_ = x[ValBool-3]
_ = x[ValList-4]
_ = x[ValVar-5]
_ = x[ValNone-6]
}
const _ValType_name = "ValStrValNumValBoolValListValVarValNone"
var _ValType_index = [...]uint8{0, 6, 12, 19, 26, 32, 39}
func (i ValType) String() string {
i -= 1
if i < 0 || i >= ValType(len(_ValType_index)-1) {
return "ValType(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _ValType_name[_ValType_index[i]:_ValType_index[i+1]]
}