-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdatatype_string.go
121 lines (115 loc) · 3.62 KB
/
datatype_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
// Code generated by "stringer -type=dataType"; DO NOT EDIT.
package tds
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[uInt4Type-29]
_ = x[imageType-34]
_ = x[textType-35]
_ = x[extendedType-36]
_ = x[varbinaryType-37]
_ = x[intNType-38]
_ = x[varcharType-39]
_ = x[binaryType-45]
_ = x[charType-47]
_ = x[tinyintType-48]
_ = x[dateType-49]
_ = x[bitType-50]
_ = x[timeType-51]
_ = x[smallintType-52]
_ = x[decimalType-55]
_ = x[intType-56]
_ = x[smalldatetimeType-58]
_ = x[realType-59]
_ = x[moneyType-60]
_ = x[datetimeType-61]
_ = x[floatType-62]
_ = x[numericType-63]
_ = x[uTinyintType-64]
_ = x[uSmallintType-65]
_ = x[uIntType-66]
_ = x[uBigintType-67]
_ = x[uIntNType-68]
_ = x[bigDateTimeNType-80]
_ = x[decimalNType-106]
_ = x[numericNType-108]
_ = x[floatNType-109]
_ = x[moneyNType-110]
_ = x[datetimeNType-111]
_ = x[smallmoneyType-122]
_ = x[dateNType-123]
_ = x[unicharType-135]
_ = x[timeNType-147]
_ = x[univarcharType-155]
_ = x[textLocatorType-169]
_ = x[imageLocatorType-170]
_ = x[unitextLocatorType-171]
_ = x[unitextType-174]
_ = x[longCharType-175]
_ = x[bigdatetimeNType-187]
_ = x[bigtimeNType-188]
_ = x[bigdatetimeType-189]
_ = x[bigtimeType-190]
_ = x[bigintType-191]
_ = x[longBinaryType-225]
}
const _dataType_name = "uInt4TypeimageTypetextTypeextendedTypevarbinaryTypeintNTypevarcharTypebinaryTypecharTypetinyintTypedateTypebitTypetimeTypesmallintTypedecimalTypeintTypesmalldatetimeTyperealTypemoneyTypedatetimeTypefloatTypenumericTypeuTinyintTypeuSmallintTypeuIntTypeuBigintTypeuIntNTypebigDateTimeNTypedecimalNTypenumericNTypefloatNTypemoneyNTypedatetimeNTypesmallmoneyTypedateNTypeunicharTypetimeNTypeunivarcharTypetextLocatorTypeimageLocatorTypeunitextLocatorTypeunitextTypelongCharTypebigdatetimeNTypebigtimeNTypebigdatetimeTypebigtimeTypebigintTypelongBinaryType"
var _dataType_map = map[dataType]string{
29: _dataType_name[0:9],
34: _dataType_name[9:18],
35: _dataType_name[18:26],
36: _dataType_name[26:38],
37: _dataType_name[38:51],
38: _dataType_name[51:59],
39: _dataType_name[59:70],
45: _dataType_name[70:80],
47: _dataType_name[80:88],
48: _dataType_name[88:99],
49: _dataType_name[99:107],
50: _dataType_name[107:114],
51: _dataType_name[114:122],
52: _dataType_name[122:134],
55: _dataType_name[134:145],
56: _dataType_name[145:152],
58: _dataType_name[152:169],
59: _dataType_name[169:177],
60: _dataType_name[177:186],
61: _dataType_name[186:198],
62: _dataType_name[198:207],
63: _dataType_name[207:218],
64: _dataType_name[218:230],
65: _dataType_name[230:243],
66: _dataType_name[243:251],
67: _dataType_name[251:262],
68: _dataType_name[262:271],
80: _dataType_name[271:287],
106: _dataType_name[287:299],
108: _dataType_name[299:311],
109: _dataType_name[311:321],
110: _dataType_name[321:331],
111: _dataType_name[331:344],
122: _dataType_name[344:358],
123: _dataType_name[358:367],
135: _dataType_name[367:378],
147: _dataType_name[378:387],
155: _dataType_name[387:401],
169: _dataType_name[401:416],
170: _dataType_name[416:432],
171: _dataType_name[432:450],
174: _dataType_name[450:461],
175: _dataType_name[461:473],
187: _dataType_name[473:489],
188: _dataType_name[489:501],
189: _dataType_name[501:516],
190: _dataType_name[516:527],
191: _dataType_name[527:537],
225: _dataType_name[537:551],
}
func (i dataType) String() string {
if str, ok := _dataType_map[i]; ok {
return str
}
return "dataType(" + strconv.FormatInt(int64(i), 10) + ")"
}