forked from sijms/go-ora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oracletype_string.go
112 lines (106 loc) · 3.1 KB
/
oracletype_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
// Code generated by "stringer -type=OracleType"; DO NOT EDIT.
package go_ora
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[NCHAR-1]
_ = x[NUMBER-2]
_ = x[SB1-3]
_ = x[SB2-3]
_ = x[SB4-3]
_ = x[FLOAT-4]
_ = x[NullStr-5]
_ = x[VarNum-6]
_ = x[LONG-8]
_ = x[VARCHAR-9]
_ = x[ROWID-11]
_ = x[DATE-12]
_ = x[VarRaw-15]
_ = x[BFloat-21]
_ = x[BDouble-22]
_ = x[RAW-23]
_ = x[LongRaw-24]
_ = x[UINT-68]
_ = x[LongVarChar-94]
_ = x[LongVarRaw-95]
_ = x[CHAR-96]
_ = x[CHARZ-97]
_ = x[IBFloat-100]
_ = x[IBDouble-101]
_ = x[REFCURSOR-102]
_ = x[NOT-108]
_ = x[XMLType-108]
_ = x[OCIRef-110]
_ = x[OCIClobLocator-112]
_ = x[OCIBlobLocator-113]
_ = x[OCIFileLocator-114]
_ = x[ResultSet-116]
_ = x[OCIString-155]
_ = x[OCIDate-156]
_ = x[TimeStampDTY-180]
_ = x[TimeStampTZ_DTY-181]
_ = x[IntervalYM_DTY-182]
_ = x[IntervalDS_DTY-183]
_ = x[TimeTZ-186]
_ = x[TimeStamp-187]
_ = x[TimeStampTZ-188]
_ = x[IntervalYM-189]
_ = x[IntervalDS-190]
_ = x[UROWID-208]
_ = x[TimeStampLTZ_DTY-231]
_ = x[TimeStampeLTZ-232]
}
const _OracleType_name = "NCHARNUMBERSB1FLOATNullStrVarNumLONGVARCHARROWIDDATEVarRawBFloatBDoubleRAWLongRawUINTLongVarCharLongVarRawCHARCHARZIBFloatIBDoubleRefCursorNOTOCIRefOCIClobLocatorOCIBlobLocatorOCIFileLocatorResultSetOCIStringOCIDateTimeStampDTYTimeStampTZ_DTYIntervalYM_DTYIntervalDS_DTYTimeTZTimeStampTimeStampTZIntervalYMIntervalDSUROWIDTimeStampLTZ_DTYTimeStampeLTZ"
var _OracleType_map = map[OracleType]string{
1: _OracleType_name[0:5],
2: _OracleType_name[5:11],
3: _OracleType_name[11:14],
4: _OracleType_name[14:19],
5: _OracleType_name[19:26],
6: _OracleType_name[26:32],
8: _OracleType_name[32:36],
9: _OracleType_name[36:43],
11: _OracleType_name[43:48],
12: _OracleType_name[48:52],
15: _OracleType_name[52:58],
21: _OracleType_name[58:64],
22: _OracleType_name[64:71],
23: _OracleType_name[71:74],
24: _OracleType_name[74:81],
68: _OracleType_name[81:85],
94: _OracleType_name[85:96],
95: _OracleType_name[96:106],
96: _OracleType_name[106:110],
97: _OracleType_name[110:115],
100: _OracleType_name[115:122],
101: _OracleType_name[122:130],
102: _OracleType_name[130:139],
108: _OracleType_name[139:142],
110: _OracleType_name[142:148],
112: _OracleType_name[148:162],
113: _OracleType_name[162:176],
114: _OracleType_name[176:190],
116: _OracleType_name[190:199],
155: _OracleType_name[199:208],
156: _OracleType_name[208:215],
180: _OracleType_name[215:227],
181: _OracleType_name[227:242],
182: _OracleType_name[242:256],
183: _OracleType_name[256:270],
186: _OracleType_name[270:276],
187: _OracleType_name[276:285],
188: _OracleType_name[285:296],
189: _OracleType_name[296:306],
190: _OracleType_name[306:316],
208: _OracleType_name[316:322],
231: _OracleType_name[322:338],
232: _OracleType_name[338:351],
}
func (i OracleType) String() string {
if str, ok := _OracleType_map[i]; ok {
return str
}
return "OracleType(" + strconv.FormatInt(int64(i), 10) + ")"
}