@lcap/nasl 4.4.0-rc.2 → 4.4.1-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/out/generator/genBundleFiles.d.ts +2 -0
  2. package/out/generator/genBundleFiles.d.ts.map +1 -1
  3. package/out/generator/genBundleFiles.js +46 -10
  4. package/out/generator/genBundleFiles.js.map +1 -1
  5. package/out/generator/icestark.d.ts +1 -1
  6. package/out/generator/icestark.d.ts.map +1 -1
  7. package/out/generator/icestark.js +6 -1
  8. package/out/generator/icestark.js.map +1 -1
  9. package/out/generator/qiankun.d.ts +1 -1
  10. package/out/generator/qiankun.d.ts.map +1 -1
  11. package/out/generator/qiankun.js +5 -3
  12. package/out/generator/qiankun.js.map +1 -1
  13. package/out/generator/release-body/data.d.ts.map +1 -1
  14. package/out/generator/release-body/data.js +30 -0
  15. package/out/generator/release-body/data.js.map +1 -1
  16. package/out/generator/release-body/share-content.js +1 -1
  17. package/out/generator/release-body/share-content.js.map +1 -1
  18. package/out/generator/release-body/types.d.ts +1 -0
  19. package/out/generator/release-body/types.d.ts.map +1 -1
  20. package/out/generator/wujie.d.ts +1 -1
  21. package/out/generator/wujie.d.ts.map +1 -1
  22. package/out/generator/wujie.js +6 -1
  23. package/out/generator/wujie.js.map +1 -1
  24. package/out/natural/exports/nasl2Files.d.ts +18 -1
  25. package/out/natural/exports/nasl2Files.d.ts.map +1 -1
  26. package/out/natural/exports/nasl2Files.js +162 -3
  27. package/out/natural/exports/nasl2Files.js.map +1 -1
  28. package/out/natural/exports/transform2BatchActions.d.ts +3 -1
  29. package/out/natural/exports/transform2BatchActions.d.ts.map +1 -1
  30. package/out/natural/exports/transform2BatchActions.js +767 -101
  31. package/out/natural/exports/transform2BatchActions.js.map +1 -1
  32. package/out/natural/old/parser/transformTS2UI.js +1 -1
  33. package/out/natural/old/parser/transformTS2UI.js.map +1 -1
  34. package/out/natural/old/parser/transformTSCode.d.ts.map +1 -1
  35. package/out/natural/old/parser/transformTSCode.js +26 -2
  36. package/out/natural/old/parser/transformTSCode.js.map +1 -1
  37. package/out/natural/parser/parseNaturalTS.d.ts.map +1 -1
  38. package/out/natural/parser/parseNaturalTS.js +97 -26
  39. package/out/natural/parser/parseNaturalTS.js.map +1 -1
  40. package/out/natural/parser/parseNaturalTSXView.d.ts.map +1 -1
  41. package/out/natural/parser/parseNaturalTSXView.js +106 -87
  42. package/out/natural/parser/parseNaturalTSXView.js.map +1 -1
  43. package/out/natural/transforms/checker/checkDefaultValue.d.ts +2 -1
  44. package/out/natural/transforms/checker/checkDefaultValue.d.ts.map +1 -1
  45. package/out/natural/transforms/checker/checkDefaultValue.js +7 -1
  46. package/out/natural/transforms/checker/checkDefaultValue.js.map +1 -1
  47. package/out/natural/transforms/checker/checkLcapEntity.d.ts +16 -0
  48. package/out/natural/transforms/checker/checkLcapEntity.d.ts.map +1 -0
  49. package/out/natural/transforms/checker/checkLcapEntity.js +337 -0
  50. package/out/natural/transforms/checker/checkLcapEntity.js.map +1 -0
  51. package/out/natural/transforms/checker/checkValidationCalleeName.d.ts +3 -0
  52. package/out/natural/transforms/checker/checkValidationCalleeName.d.ts.map +1 -0
  53. package/out/natural/transforms/checker/checkValidationCalleeName.js +88 -0
  54. package/out/natural/transforms/checker/checkValidationCalleeName.js.map +1 -0
  55. package/out/natural/transforms/checker/checkViewElement.d.ts.map +1 -1
  56. package/out/natural/transforms/checker/checkViewElement.js +175 -9
  57. package/out/natural/transforms/checker/checkViewElement.js.map +1 -1
  58. package/out/natural/transforms/checker/index.d.ts +2 -0
  59. package/out/natural/transforms/checker/index.d.ts.map +1 -1
  60. package/out/natural/transforms/checker/index.js +5 -1
  61. package/out/natural/transforms/checker/index.js.map +1 -1
  62. package/out/natural/transforms/transform2Entity.d.ts +5 -0
  63. package/out/natural/transforms/transform2Entity.d.ts.map +1 -1
  64. package/out/natural/transforms/transform2Entity.js +84 -4
  65. package/out/natural/transforms/transform2Entity.js.map +1 -1
  66. package/out/natural/transforms/transform2GlobalLogicDeclaration.d.ts +1 -1
  67. package/out/natural/transforms/transform2GlobalLogicDeclaration.d.ts.map +1 -1
  68. package/out/natural/transforms/transform2GlobalLogicDeclaration.js +15 -1
  69. package/out/natural/transforms/transform2GlobalLogicDeclaration.js.map +1 -1
  70. package/out/natural/transforms/transform2Logic.d.ts +3 -3
  71. package/out/natural/transforms/transform2Logic.d.ts.map +1 -1
  72. package/out/natural/transforms/transform2Logic.js +54 -13
  73. package/out/natural/transforms/transform2Logic.js.map +1 -1
  74. package/out/natural/transforms/transform2LogicItem.d.ts +4 -0
  75. package/out/natural/transforms/transform2LogicItem.d.ts.map +1 -1
  76. package/out/natural/transforms/transform2LogicItem.js +82 -18
  77. package/out/natural/transforms/transform2LogicItem.js.map +1 -1
  78. package/out/natural/transforms/transform2ValidationRule.d.ts +1 -1
  79. package/out/natural/transforms/transform2ValidationRule.d.ts.map +1 -1
  80. package/out/natural/transforms/transform2ValidationRule.js +5 -0
  81. package/out/natural/transforms/transform2ValidationRule.js.map +1 -1
  82. package/out/natural/transforms/transform2Variable.d.ts +3 -3
  83. package/out/natural/transforms/transform2Variable.d.ts.map +1 -1
  84. package/out/natural/transforms/transform2Variable.js +36 -5
  85. package/out/natural/transforms/transform2Variable.js.map +1 -1
  86. package/out/natural/transforms/transformThemeAndStyle.d.ts +4 -1
  87. package/out/natural/transforms/transformThemeAndStyle.d.ts.map +1 -1
  88. package/out/natural/transforms/transformThemeAndStyle.js +25 -12
  89. package/out/natural/transforms/transformThemeAndStyle.js.map +1 -1
  90. package/out/natural/transforms/utils/createComponentLookupMap.d.ts +32 -0
  91. package/out/natural/transforms/utils/createComponentLookupMap.d.ts.map +1 -0
  92. package/out/natural/transforms/utils/createComponentLookupMap.js +57 -0
  93. package/out/natural/transforms/utils/createComponentLookupMap.js.map +1 -0
  94. package/out/natural/transforms/utils/iconNames.d.ts +2 -0
  95. package/out/natural/transforms/utils/iconNames.d.ts.map +1 -0
  96. package/out/natural/transforms/utils/iconNames.js +299 -0
  97. package/out/natural/transforms/utils/iconNames.js.map +1 -0
  98. package/out/natural/transforms/utils/normalizeNode.d.ts +3 -0
  99. package/out/natural/transforms/utils/normalizeNode.d.ts.map +1 -0
  100. package/out/natural/transforms/utils/normalizeNode.js +15 -0
  101. package/out/natural/transforms/utils/normalizeNode.js.map +1 -0
  102. package/out/natural/transforms/utils/parseDecorator.d.ts +32 -4
  103. package/out/natural/transforms/utils/parseDecorator.d.ts.map +1 -1
  104. package/out/natural/transforms/utils/parseDecorator.js +81 -9
  105. package/out/natural/transforms/utils/parseDecorator.js.map +1 -1
  106. package/out/natural/transforms/utils/transform2Directory.d.ts +59 -0
  107. package/out/natural/transforms/utils/transform2Directory.d.ts.map +1 -0
  108. package/out/natural/transforms/utils/transform2Directory.js +229 -0
  109. package/out/natural/transforms/utils/transform2Directory.js.map +1 -0
  110. package/out/natural/utils/index.d.ts +17 -0
  111. package/out/natural/utils/index.d.ts.map +1 -1
  112. package/out/natural/utils/index.js +38 -2
  113. package/out/natural/utils/index.js.map +1 -1
  114. package/out/natural/utils/nasl-file-types.d.ts +45 -0
  115. package/out/natural/utils/nasl-file-types.d.ts.map +1 -0
  116. package/out/natural/utils/nasl-file-types.js +131 -0
  117. package/out/natural/utils/nasl-file-types.js.map +1 -0
  118. package/out/server/OQL/sqlDbTypes.json +717 -0
  119. package/out/server/createUiTs.d.ts +0 -1
  120. package/out/server/createUiTs.d.ts.map +1 -1
  121. package/out/server/createUiTs.js +1 -118
  122. package/out/server/createUiTs.js.map +1 -1
  123. package/out/server/extendBaseNode.d.ts.map +1 -1
  124. package/out/server/extendBaseNode.js +3 -0
  125. package/out/server/extendBaseNode.js.map +1 -1
  126. package/out/server/naslServer.d.ts.map +1 -1
  127. package/out/server/naslServer.js +14 -21
  128. package/out/server/naslServer.js.map +1 -1
  129. package/out/service/storage/init.d.ts +1 -1
  130. package/out/service/storage/init.d.ts.map +1 -1
  131. package/out/service/storage/init.js +17 -7
  132. package/out/service/storage/init.js.map +1 -1
  133. package/out/service/storage/specTools.d.ts +20 -8
  134. package/out/service/storage/specTools.d.ts.map +1 -1
  135. package/out/service/storage/specTools.js +124 -5
  136. package/out/service/storage/specTools.js.map +1 -1
  137. package/package.json +9 -9
  138. package/sandbox/stdlib/nasl.util.ts +1 -1
  139. package/sandbox/stdlib/nasl.validation.ts +50 -14
  140. package/out/natural/transforms/utils/fetchFromComments.d.ts +0 -3
  141. package/out/natural/transforms/utils/fetchFromComments.d.ts.map +0 -1
  142. package/out/natural/transforms/utils/fetchFromComments.js +0 -10
  143. package/out/natural/transforms/utils/fetchFromComments.js.map +0 -1
@@ -0,0 +1,717 @@
1
+ [
2
+ {
3
+ "dbType": "mysql",
4
+ "columnTypes": [
5
+ {
6
+ "naslType": "Decimal",
7
+ "dataBaseTypes": [
8
+ {
9
+ "type": "double",
10
+ "options": {},
11
+ "defaultType": false,
12
+ "min": null,
13
+ "max": null
14
+ },
15
+ {
16
+ "type": "float",
17
+ "options": {},
18
+ "defaultType": false,
19
+ "min": null,
20
+ "max": null
21
+ },
22
+ {
23
+ "type": "decimal",
24
+ "options": {
25
+ "precision": {
26
+ "min": "1",
27
+ "max": "65",
28
+ "comment": "精度",
29
+ "require": false,
30
+ "desc": "若存储类型为自动,则精度(小数位数+整数位数的总长度)为31;若为非自动,则可以定义在[1,65]之间的任意整数",
31
+ "default": "31"
32
+ },
33
+ "scale": {
34
+ "min": "0",
35
+ "max": "16",
36
+ "comment": "小数位数",
37
+ "require": false,
38
+ "desc": "",
39
+ "default": "2"
40
+ }
41
+ },
42
+ "defaultType": true,
43
+ "min": null,
44
+ "max": null
45
+ }
46
+ ]
47
+ },
48
+ {
49
+ "naslType": "Long",
50
+ "dataBaseTypes": [
51
+ {
52
+ "type": "int",
53
+ "options": {
54
+ "displayWidth": {
55
+ "min": "1",
56
+ "max": "255",
57
+ "comment": "显示宽度",
58
+ "require": false,
59
+ "desc": "显示宽度可以定义在[1,255]之间的任意整数",
60
+ "default": "11"
61
+ }
62
+ },
63
+ "defaultType": false,
64
+ "min": "-2147483648",
65
+ "max": "2147483647"
66
+ },
67
+ {
68
+ "type": "tinyint",
69
+ "options": {
70
+ "displayWidth": {
71
+ "min": "1",
72
+ "max": "255",
73
+ "comment": "显示宽度",
74
+ "require": false,
75
+ "desc": "显示宽度可以定义在[1,255]之间的任意整数",
76
+ "default": "4"
77
+ }
78
+ },
79
+ "defaultType": false,
80
+ "min": "-128",
81
+ "max": "127"
82
+ },
83
+ {
84
+ "type": "smallint",
85
+ "options": {
86
+ "displayWidth": {
87
+ "min": "1",
88
+ "max": "255",
89
+ "comment": "显示宽度",
90
+ "require": false,
91
+ "desc": "显示宽度可以定义在[1,255]之间的任意整数",
92
+ "default": "6"
93
+ }
94
+ },
95
+ "defaultType": false,
96
+ "min": "-32768",
97
+ "max": "32767"
98
+ },
99
+ {
100
+ "type": "bigint",
101
+ "options": {
102
+ "displayWidth": {
103
+ "min": "1",
104
+ "max": "255",
105
+ "comment": "显示宽度",
106
+ "require": false,
107
+ "desc": "若存储类型为自动,则显示宽度为20;若为非自动,则可以定义在[1,255]之间的任意整数",
108
+ "default": "20"
109
+ }
110
+ },
111
+ "defaultType": true,
112
+ "min": "-9223372036854775808",
113
+ "max": "9223372036854775807"
114
+ },
115
+ {
116
+ "type": "mediumint",
117
+ "options": {
118
+ "displayWidth": {
119
+ "min": "1",
120
+ "max": "255",
121
+ "comment": "显示宽度",
122
+ "require": false,
123
+ "desc": "显示宽度可以定义在[1,255]之间的任意整数",
124
+ "default": "9"
125
+ }
126
+ },
127
+ "defaultType": false,
128
+ "min": "-8388608",
129
+ "max": "8388607"
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ "naslType": "String",
135
+ "dataBaseTypes": [
136
+ {
137
+ "type": "varchar",
138
+ "options": {
139
+ "length": {
140
+ "min": "1",
141
+ "max": "4000",
142
+ "comment": "存储长度",
143
+ "require": true,
144
+ "desc": "若存储类型为自动,则存储长度为255;若为非自动,则可以定义在[1,4000]之间的任意整数",
145
+ "default": "255"
146
+ }
147
+ },
148
+ "defaultType": true,
149
+ "min": "1",
150
+ "max": "4000"
151
+ },
152
+ {
153
+ "type": "char",
154
+ "options": {
155
+ "length": {
156
+ "min": "1",
157
+ "max": "255",
158
+ "comment": "存储长度",
159
+ "require": true,
160
+ "desc": "存储长度可以定义在[1,255]之间的任意整数",
161
+ "default": "255"
162
+ }
163
+ },
164
+ "defaultType": false,
165
+ "min": "1",
166
+ "max": "255"
167
+ },
168
+ {
169
+ "type": "text",
170
+ "options": {},
171
+ "defaultType": false,
172
+ "min": "1",
173
+ "max": "65535"
174
+ },
175
+ {
176
+ "type": "tinytext",
177
+ "options": {},
178
+ "defaultType": false,
179
+ "min": "1",
180
+ "max": "255"
181
+ },
182
+ {
183
+ "type": "mediumtext",
184
+ "options": {},
185
+ "defaultType": false,
186
+ "min": "1",
187
+ "max": "16777215"
188
+ },
189
+ {
190
+ "type": "longtext",
191
+ "options": {},
192
+ "defaultType": false,
193
+ "min": "1",
194
+ "max": "4294967295"
195
+ }
196
+ ]
197
+ },
198
+ {
199
+ "naslType": "reference",
200
+ "dataBaseTypes": [
201
+ {
202
+ "type": "text",
203
+ "options": {},
204
+ "defaultType": true,
205
+ "min": "1",
206
+ "max": "65535"
207
+ },
208
+ {
209
+ "type": "tinytext",
210
+ "options": {},
211
+ "defaultType": false,
212
+ "min": "1",
213
+ "max": "255"
214
+ },
215
+ {
216
+ "type": "mediumtext",
217
+ "options": {},
218
+ "defaultType": false,
219
+ "min": "1",
220
+ "max": "16777215"
221
+ },
222
+ {
223
+ "type": "longtext",
224
+ "options": {},
225
+ "defaultType": false,
226
+ "min": "1",
227
+ "max": "4294967295"
228
+ }
229
+ ]
230
+ },
231
+ {
232
+ "naslType": "generic",
233
+ "dataBaseTypes": [
234
+ {
235
+ "type": "text",
236
+ "options": {},
237
+ "defaultType": true,
238
+ "min": "1",
239
+ "max": "65535"
240
+ },
241
+ {
242
+ "type": "tinytext",
243
+ "options": {},
244
+ "defaultType": false,
245
+ "min": "1",
246
+ "max": "255"
247
+ },
248
+ {
249
+ "type": "mediumtext",
250
+ "options": {},
251
+ "defaultType": false,
252
+ "min": "1",
253
+ "max": "16777215"
254
+ },
255
+ {
256
+ "type": "longtext",
257
+ "options": {},
258
+ "defaultType": false,
259
+ "min": "1",
260
+ "max": "4294967295"
261
+ }
262
+ ]
263
+ },
264
+ {
265
+ "naslType": "Boolean",
266
+ "dataBaseTypes": [
267
+ {
268
+ "type": "tinyint",
269
+ "options": {
270
+ "displayWidth": {
271
+ "min": "1",
272
+ "max": "1",
273
+ "comment": "显示宽度",
274
+ "require": true,
275
+ "desc": "若存储类型为自动,则显示宽度为1;若为非自动,则可以定义在[1,1]之间的任意整数",
276
+ "default": "1"
277
+ }
278
+ },
279
+ "defaultType": true,
280
+ "min": null,
281
+ "max": null
282
+ }
283
+ ]
284
+ },
285
+ {
286
+ "naslType": "Date",
287
+ "dataBaseTypes": [
288
+ {
289
+ "type": "date",
290
+ "options": {},
291
+ "defaultType": true,
292
+ "min": null,
293
+ "max": null
294
+ }
295
+ ]
296
+ },
297
+ {
298
+ "naslType": "Time",
299
+ "dataBaseTypes": [
300
+ {
301
+ "type": "time",
302
+ "options": {},
303
+ "defaultType": true,
304
+ "min": null,
305
+ "max": null
306
+ }
307
+ ]
308
+ },
309
+ {
310
+ "naslType": "DateTime",
311
+ "dataBaseTypes": [
312
+ {
313
+ "type": "datetime",
314
+ "options": {},
315
+ "defaultType": true,
316
+ "min": null,
317
+ "max": null
318
+ },
319
+ {
320
+ "type": "timestamp",
321
+ "options": {},
322
+ "defaultType": false,
323
+ "min": null,
324
+ "max": null
325
+ }
326
+ ]
327
+ },
328
+ {
329
+ "naslType": "Binary",
330
+ "dataBaseTypes": [
331
+ {
332
+ "type": "blob",
333
+ "options": {},
334
+ "defaultType": true,
335
+ "min": null,
336
+ "max": null
337
+ },
338
+ {
339
+ "type": "tinyblob",
340
+ "options": {},
341
+ "defaultType": false,
342
+ "min": null,
343
+ "max": null
344
+ },
345
+ {
346
+ "type": "mediumblob",
347
+ "options": {},
348
+ "defaultType": false,
349
+ "min": null,
350
+ "max": null
351
+ },
352
+ {
353
+ "type": "longblob",
354
+ "options": {},
355
+ "defaultType": false,
356
+ "min": null,
357
+ "max": null
358
+ },
359
+ {
360
+ "type": "binary",
361
+ "options": {},
362
+ "defaultType": false,
363
+ "min": null,
364
+ "max": null
365
+ }
366
+ ]
367
+ },
368
+ {
369
+ "naslType": "enum",
370
+ "dataBaseTypes": [
371
+ {
372
+ "type": "varchar",
373
+ "options": {
374
+ "length": {
375
+ "min": "1",
376
+ "max": "4000",
377
+ "comment": "存储长度",
378
+ "require": true,
379
+ "desc": "若存储类型为自动,则存储长度为256;若为非自动,则可以定义在[1,4000]之间的任意整数",
380
+ "default": "256"
381
+ }
382
+ },
383
+ "defaultType": true,
384
+ "min": "1",
385
+ "max": "4000"
386
+ }
387
+ ]
388
+ }
389
+ ],
390
+ "dbColumnTypeMap": {
391
+ "longtext": {
392
+ "columnType": "longtext",
393
+ "defaultMapping": false,
394
+ "minValue": "1",
395
+ "maxValue": "4294967295",
396
+ "options": {},
397
+ "alias": [
398
+ "longtext"
399
+ ]
400
+ },
401
+ "date": {
402
+ "columnType": "date",
403
+ "defaultMapping": true,
404
+ "minValue": null,
405
+ "maxValue": null,
406
+ "options": {},
407
+ "alias": [
408
+ "date"
409
+ ]
410
+ },
411
+ "mediumint": {
412
+ "columnType": "mediumint",
413
+ "defaultMapping": false,
414
+ "minValue": "-8388608",
415
+ "maxValue": "8388607",
416
+ "options": {
417
+ "displayWidth": {
418
+ "min": "1",
419
+ "max": "255",
420
+ "comment": "显示宽度",
421
+ "require": false,
422
+ "defaultValue": "9",
423
+ "desc": "显示宽度可以定义在[1,255]之间的任意整数"
424
+ }
425
+ },
426
+ "alias": [
427
+ "mediumint",
428
+ "int3"
429
+ ]
430
+ },
431
+ "mediumtext": {
432
+ "columnType": "mediumtext",
433
+ "defaultMapping": false,
434
+ "minValue": "1",
435
+ "maxValue": "16777215",
436
+ "options": {},
437
+ "alias": [
438
+ "mediumtext"
439
+ ]
440
+ },
441
+ "double": {
442
+ "columnType": "double",
443
+ "defaultMapping": true,
444
+ "minValue": null,
445
+ "maxValue": null,
446
+ "options": {},
447
+ "alias": [
448
+ "double",
449
+ "real"
450
+ ]
451
+ },
452
+ "tinytext": {
453
+ "columnType": "tinytext",
454
+ "defaultMapping": false,
455
+ "minValue": "1",
456
+ "maxValue": "255",
457
+ "options": {},
458
+ "alias": [
459
+ "tinytext"
460
+ ]
461
+ },
462
+ "varchar": {
463
+ "columnType": "varchar",
464
+ "defaultMapping": true,
465
+ "minValue": "1",
466
+ "maxValue": "4000",
467
+ "options": {
468
+ "length": {
469
+ "min": "1",
470
+ "max": "4000",
471
+ "comment": "存储长度",
472
+ "require": true,
473
+ "defaultValue": "256",
474
+ "desc": "若存储类型为自动,则存储长度为256;若为非自动,则可以定义在[1,4000]之间的任意整数"
475
+ }
476
+ },
477
+ "alias": [
478
+ "varchar",
479
+ "character varying"
480
+ ]
481
+ },
482
+ "tinyint": {
483
+ "columnType": "tinyint",
484
+ "defaultMapping": true,
485
+ "minValue": null,
486
+ "maxValue": null,
487
+ "options": {
488
+ "displayWidth": {
489
+ "min": "1",
490
+ "max": "1",
491
+ "comment": "显示宽度",
492
+ "require": true,
493
+ "defaultValue": "1",
494
+ "desc": "若存储类型为自动,则显示宽度为1;若为非自动,则可以定义在[1,1]之间的任意整数"
495
+ }
496
+ },
497
+ "alias": [
498
+ "tinyint",
499
+ "int1",
500
+ "boolean",
501
+ "bool"
502
+ ]
503
+ },
504
+ "float": {
505
+ "columnType": "float",
506
+ "defaultMapping": false,
507
+ "minValue": null,
508
+ "maxValue": null,
509
+ "options": {},
510
+ "alias": [
511
+ "float"
512
+ ]
513
+ },
514
+ "int": {
515
+ "columnType": "int",
516
+ "defaultMapping": true,
517
+ "minValue": "-2147483648",
518
+ "maxValue": "2147483647",
519
+ "options": {
520
+ "displayWidth": {
521
+ "min": "1",
522
+ "max": "255",
523
+ "comment": "显示宽度",
524
+ "require": false,
525
+ "defaultValue": "11",
526
+ "desc": "显示宽度可以定义在[1,255]之间的任意整数"
527
+ }
528
+ },
529
+ "alias": [
530
+ "int",
531
+ "integer",
532
+ "int4"
533
+ ]
534
+ },
535
+ "mediumblob": {
536
+ "columnType": "mediumblob",
537
+ "defaultMapping": false,
538
+ "minValue": null,
539
+ "maxValue": null,
540
+ "options": {},
541
+ "alias": [
542
+ "mediumblob"
543
+ ]
544
+ },
545
+ "smallint": {
546
+ "columnType": "smallint",
547
+ "defaultMapping": false,
548
+ "minValue": "-32768",
549
+ "maxValue": "32767",
550
+ "options": {
551
+ "displayWidth": {
552
+ "min": "1",
553
+ "max": "255",
554
+ "comment": "显示宽度",
555
+ "require": false,
556
+ "defaultValue": "6",
557
+ "desc": "显示宽度可以定义在[1,255]之间的任意整数"
558
+ }
559
+ },
560
+ "alias": [
561
+ "smallint",
562
+ "int2"
563
+ ]
564
+ },
565
+ "datetime": {
566
+ "columnType": "datetime",
567
+ "defaultMapping": true,
568
+ "minValue": null,
569
+ "maxValue": null,
570
+ "options": {},
571
+ "alias": [
572
+ "datetime"
573
+ ]
574
+ },
575
+ "blob": {
576
+ "columnType": "blob",
577
+ "defaultMapping": true,
578
+ "minValue": null,
579
+ "maxValue": null,
580
+ "options": {},
581
+ "alias": [
582
+ "blob"
583
+ ]
584
+ },
585
+ "binary": {
586
+ "columnType": "binary",
587
+ "defaultMapping": false,
588
+ "minValue": null,
589
+ "maxValue": null,
590
+ "options": {},
591
+ "alias": [
592
+ "binary"
593
+ ]
594
+ },
595
+ "char": {
596
+ "columnType": "char",
597
+ "defaultMapping": false,
598
+ "minValue": "1",
599
+ "maxValue": "255",
600
+ "options": {
601
+ "length": {
602
+ "min": "1",
603
+ "max": "255",
604
+ "comment": "存储长度",
605
+ "require": true,
606
+ "defaultValue": "255",
607
+ "desc": "存储长度可以定义在[1,255]之间的任意整数"
608
+ }
609
+ },
610
+ "alias": [
611
+ "char",
612
+ "character"
613
+ ]
614
+ },
615
+ "longblob": {
616
+ "columnType": "longblob",
617
+ "defaultMapping": false,
618
+ "minValue": null,
619
+ "maxValue": null,
620
+ "options": {},
621
+ "alias": [
622
+ "longblob"
623
+ ]
624
+ },
625
+ "text": {
626
+ "columnType": "text",
627
+ "defaultMapping": true,
628
+ "minValue": "1",
629
+ "maxValue": "65535",
630
+ "options": {},
631
+ "alias": [
632
+ "text"
633
+ ]
634
+ },
635
+ "time": {
636
+ "columnType": "time",
637
+ "defaultMapping": true,
638
+ "minValue": null,
639
+ "maxValue": null,
640
+ "options": {},
641
+ "alias": [
642
+ "time"
643
+ ]
644
+ },
645
+ "decimal": {
646
+ "columnType": "decimal",
647
+ "defaultMapping": true,
648
+ "minValue": null,
649
+ "maxValue": null,
650
+ "options": {
651
+ "precision": {
652
+ "min": "1",
653
+ "max": "65",
654
+ "comment": "精度",
655
+ "require": false,
656
+ "defaultValue": "31",
657
+ "desc": "若存储类型为自动,则精度(小数位数+整数位数的总长度)为31;若为非自动,则可以定义在[1,65]之间的任意整数"
658
+ },
659
+ "scale": {
660
+ "min": "0",
661
+ "max": "16",
662
+ "comment": "小数位数",
663
+ "require": false,
664
+ "defaultValue": "2",
665
+ "desc": ""
666
+ }
667
+ },
668
+ "alias": [
669
+ "decimal",
670
+ "numeric"
671
+ ]
672
+ },
673
+ "bigint": {
674
+ "columnType": "bigint",
675
+ "defaultMapping": true,
676
+ "minValue": "-9223372036854775808",
677
+ "maxValue": "9223372036854775807",
678
+ "options": {
679
+ "displayWidth": {
680
+ "min": "1",
681
+ "max": "255",
682
+ "comment": "显示宽度",
683
+ "require": false,
684
+ "defaultValue": "20",
685
+ "desc": "若存储类型为自动,则显示宽度为20;若为非自动,则可以定义在[1,255]之间的任意整数"
686
+ }
687
+ },
688
+ "alias": [
689
+ "bigint",
690
+ "int8",
691
+ "signed",
692
+ "unsigned"
693
+ ]
694
+ },
695
+ "tinyblob": {
696
+ "columnType": "tinyblob",
697
+ "defaultMapping": false,
698
+ "minValue": null,
699
+ "maxValue": null,
700
+ "options": {},
701
+ "alias": [
702
+ "tinyblob"
703
+ ]
704
+ },
705
+ "timestamp": {
706
+ "columnType": "timestamp",
707
+ "defaultMapping": false,
708
+ "minValue": null,
709
+ "maxValue": null,
710
+ "options": {},
711
+ "alias": [
712
+ "timestamp"
713
+ ]
714
+ }
715
+ }
716
+ }
717
+ ]