@eggjs/tegg-types 4.0.0-beta.34 → 4.0.0-beta.36
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.
- package/dist/aop/Advice.d.ts +39 -36
- package/dist/aop/Advice.js +1 -2
- package/dist/aop/Aspect.d.ts +15 -11
- package/dist/aop/Aspect.js +5 -2
- package/dist/aop/Crosscut.d.ts +27 -23
- package/dist/aop/Crosscut.js +6 -3
- package/dist/aop/Pointcut.d.ts +27 -23
- package/dist/aop/Pointcut.js +9 -15
- package/dist/aop/index.d.ts +5 -4
- package/dist/aop/index.js +5 -5
- package/dist/common/Graph.d.ts +5 -2
- package/dist/common/Graph.js +1 -2
- package/dist/common/Logger.d.ts +9 -6
- package/dist/common/Logger.js +1 -2
- package/dist/common/ModuleConfig.d.ts +24 -22
- package/dist/common/ModuleConfig.js +1 -2
- package/dist/common/RuntimeConfig.d.ts +17 -14
- package/dist/common/RuntimeConfig.js +1 -2
- package/dist/common/index.d.ts +5 -4
- package/dist/common/index.js +1 -5
- package/dist/controller-decorator/HTTPController.d.ts +7 -4
- package/dist/controller-decorator/HTTPController.js +1 -2
- package/dist/controller-decorator/HTTPMethod.d.ts +10 -5
- package/dist/controller-decorator/HTTPMethod.js +1 -2
- package/dist/controller-decorator/HTTPParam.d.ts +9 -6
- package/dist/controller-decorator/HTTPParam.js +1 -2
- package/dist/controller-decorator/MetadataKey.d.ts +23 -20
- package/dist/controller-decorator/MetadataKey.js +24 -21
- package/dist/controller-decorator/builder.d.ts +10 -5
- package/dist/controller-decorator/builder.js +1 -2
- package/dist/controller-decorator/index.d.ts +10 -6
- package/dist/controller-decorator/index.js +4 -7
- package/dist/controller-decorator/model/ControllerMetadata.d.ts +14 -10
- package/dist/controller-decorator/model/ControllerMetadata.js +1 -2
- package/dist/controller-decorator/model/MethodMeta.d.ts +9 -5
- package/dist/controller-decorator/model/MethodMeta.js +1 -2
- package/dist/controller-decorator/model/index.d.ts +4 -3
- package/dist/controller-decorator/model/index.js +3 -4
- package/dist/controller-decorator/model/types.d.ts +47 -44
- package/dist/controller-decorator/model/types.js +37 -34
- package/dist/core-decorator/ContextProto.d.ts +9 -5
- package/dist/core-decorator/ContextProto.js +3 -2
- package/dist/core-decorator/Inject.d.ts +6 -3
- package/dist/core-decorator/Inject.js +1 -2
- package/dist/core-decorator/Metadata.d.ts +4 -1
- package/dist/core-decorator/Metadata.js +1 -2
- package/dist/core-decorator/MultiInstanceProto.d.ts +28 -23
- package/dist/core-decorator/MultiInstanceProto.js +1 -2
- package/dist/core-decorator/Prototype.d.ts +12 -7
- package/dist/core-decorator/Prototype.js +5 -2
- package/dist/core-decorator/SingletonProto.d.ts +9 -5
- package/dist/core-decorator/SingletonProto.js +1 -2
- package/dist/core-decorator/enum/AccessLevel.d.ts +7 -4
- package/dist/core-decorator/enum/AccessLevel.js +7 -6
- package/dist/core-decorator/enum/EggType.d.ts +7 -4
- package/dist/core-decorator/enum/EggType.js +7 -4
- package/dist/core-decorator/enum/InjectType.d.ts +7 -4
- package/dist/core-decorator/enum/InjectType.js +7 -4
- package/dist/core-decorator/enum/MultiInstanceType.d.ts +7 -4
- package/dist/core-decorator/enum/MultiInstanceType.js +7 -4
- package/dist/core-decorator/enum/ObjectInitType.d.ts +10 -7
- package/dist/core-decorator/enum/ObjectInitType.js +12 -12
- package/dist/core-decorator/enum/Qualifier.d.ts +10 -7
- package/dist/core-decorator/enum/Qualifier.js +11 -8
- package/dist/core-decorator/enum/index.d.ts +7 -6
- package/dist/core-decorator/enum/index.js +8 -7
- package/dist/core-decorator/index.d.ts +18 -8
- package/dist/core-decorator/index.js +12 -9
- package/dist/core-decorator/model/EggMultiInstancePrototypeInfo.d.ts +58 -53
- package/dist/core-decorator/model/EggMultiInstancePrototypeInfo.js +4 -4
- package/dist/core-decorator/model/EggPrototypeInfo.d.ts +38 -33
- package/dist/core-decorator/model/EggPrototypeInfo.js +3 -3
- package/dist/core-decorator/model/InjectConstructorInfo.d.ts +22 -18
- package/dist/core-decorator/model/InjectConstructorInfo.js +1 -2
- package/dist/core-decorator/model/InjectObjectInfo.d.ts +17 -14
- package/dist/core-decorator/model/InjectObjectInfo.js +1 -2
- package/dist/core-decorator/model/QualifierInfo.d.ts +39 -36
- package/dist/core-decorator/model/QualifierInfo.js +1 -2
- package/dist/core-decorator/model/index.d.ts +6 -5
- package/dist/core-decorator/model/index.js +4 -6
- package/dist/dal/Qualifier.d.ts +9 -6
- package/dist/dal/Qualifier.js +10 -7
- package/dist/dal/decorator/Column.d.ts +145 -141
- package/dist/dal/decorator/Column.js +1 -2
- package/dist/dal/decorator/DataSourceQualifier.d.ts +5 -2
- package/dist/dal/decorator/DataSourceQualifier.js +6 -3
- package/dist/dal/decorator/Table.d.ts +26 -20
- package/dist/dal/decorator/Table.js +1 -2
- package/dist/dal/decorator/index.d.ts +18 -13
- package/dist/dal/decorator/index.js +3 -4
- package/dist/dal/enum/ColumnFormat.d.ts +8 -5
- package/dist/dal/enum/ColumnFormat.js +8 -5
- package/dist/dal/enum/ColumnType.d.ts +43 -40
- package/dist/dal/enum/ColumnType.js +43 -46
- package/dist/dal/enum/CompressionType.d.ts +8 -5
- package/dist/dal/enum/CompressionType.js +8 -5
- package/dist/dal/enum/IndexStoreType.d.ts +7 -4
- package/dist/dal/enum/IndexStoreType.js +7 -4
- package/dist/dal/enum/IndexType.d.ts +10 -7
- package/dist/dal/enum/IndexType.js +10 -7
- package/dist/dal/enum/InsertMethod.d.ts +8 -5
- package/dist/dal/enum/InsertMethod.js +8 -5
- package/dist/dal/enum/RowFormat.d.ts +11 -8
- package/dist/dal/enum/RowFormat.js +11 -8
- package/dist/dal/enum/SqlType.d.ts +10 -7
- package/dist/dal/enum/SqlType.js +10 -7
- package/dist/dal/enum/Templates.d.ts +8 -5
- package/dist/dal/enum/Templates.js +8 -5
- package/dist/dal/enum/index.d.ts +10 -9
- package/dist/dal/enum/index.js +11 -10
- package/dist/dal/index.d.ts +21 -4
- package/dist/dal/index.js +13 -5
- package/dist/dal/type/BaseDao.d.ts +12 -8
- package/dist/dal/type/BaseDao.js +1 -2
- package/dist/dal/type/CodeGenerator.d.ts +8 -5
- package/dist/dal/type/CodeGenerator.js +1 -2
- package/dist/dal/type/ColumnTsType.d.ts +44 -40
- package/dist/dal/type/ColumnTsType.js +1 -2
- package/dist/dal/type/DateSource.d.ts +14 -11
- package/dist/dal/type/DateSource.js +1 -2
- package/dist/dal/type/Spatial.d.ts +13 -10
- package/dist/dal/type/Spatial.js +1 -2
- package/dist/dal/type/SqlMap.d.ts +18 -14
- package/dist/dal/type/SqlMap.js +1 -2
- package/dist/dal/type/index.d.ts +7 -6
- package/dist/dal/type/index.js +1 -7
- package/dist/dynamic-inject.d.ts +15 -10
- package/dist/dynamic-inject.js +5 -2
- package/dist/index.d.ts +73 -12
- package/dist/index.js +38 -13
- package/dist/lifecycle/EggObjectLifecycle.d.ts +38 -33
- package/dist/lifecycle/EggObjectLifecycle.js +1 -2
- package/dist/lifecycle/IdenticalObject.d.ts +6 -3
- package/dist/lifecycle/IdenticalObject.js +1 -2
- package/dist/lifecycle/LifecycleHook.d.ts +14 -11
- package/dist/lifecycle/LifecycleHook.js +1 -2
- package/dist/lifecycle/index.d.ts +4 -3
- package/dist/lifecycle/index.js +1 -4
- package/dist/metadata/enum/ProtoDescriptorType.d.ts +6 -3
- package/dist/metadata/enum/ProtoDescriptorType.js +5 -4
- package/dist/metadata/enum/index.d.ts +2 -1
- package/dist/metadata/enum/index.js +3 -2
- package/dist/metadata/errors.d.ts +8 -5
- package/dist/metadata/errors.js +8 -5
- package/dist/metadata/index.d.ts +7 -3
- package/dist/metadata/index.js +6 -4
- package/dist/metadata/model/EggPrototype.d.ts +138 -129
- package/dist/metadata/model/EggPrototype.js +3 -4
- package/dist/metadata/model/LoadUnit.d.ts +31 -26
- package/dist/metadata/model/LoadUnit.js +8 -5
- package/dist/metadata/model/Loader.d.ts +10 -5
- package/dist/metadata/model/Loader.js +1 -2
- package/dist/metadata/model/ProtoDescriptor.d.ts +27 -20
- package/dist/metadata/model/ProtoDescriptor.js +3 -3
- package/dist/metadata/model/index.d.ts +5 -4
- package/dist/metadata/model/index.js +5 -5
- package/dist/orm.d.ts +28 -25
- package/dist/orm.js +10 -7
- package/dist/runtime/Factory.d.ts +11 -6
- package/dist/runtime/Factory.js +1 -2
- package/dist/runtime/index.d.ts +6 -2
- package/dist/runtime/index.js +3 -3
- package/dist/runtime/model/EggContainer.d.ts +15 -10
- package/dist/runtime/model/EggContainer.js +1 -2
- package/dist/runtime/model/EggContext.d.ts +9 -6
- package/dist/runtime/model/EggContext.js +1 -2
- package/dist/runtime/model/EggObject.d.ts +27 -22
- package/dist/runtime/model/EggObject.js +10 -7
- package/dist/runtime/model/LoadUnitInstance.d.ts +11 -7
- package/dist/runtime/model/LoadUnitInstance.js +1 -2
- package/dist/runtime/model/index.d.ts +5 -4
- package/dist/runtime/model/index.js +3 -5
- package/dist/schedule.d.ts +42 -38
- package/dist/schedule.js +11 -8
- package/dist/transaction.d.ts +24 -21
- package/dist/transaction.js +9 -8
- package/package.json +29 -33
|
@@ -1,178 +1,182 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import { ColumnFormat } from "../enum/ColumnFormat.js";
|
|
2
|
+
import { ColumnType } from "../enum/ColumnType.js";
|
|
3
|
+
|
|
4
|
+
//#region src/dal/decorator/Column.d.ts
|
|
5
|
+
interface ColumnParams {
|
|
6
|
+
name?: string;
|
|
7
|
+
default?: string;
|
|
8
|
+
canNull?: boolean;
|
|
9
|
+
comment?: string;
|
|
10
|
+
visible?: boolean;
|
|
11
|
+
autoIncrement?: boolean;
|
|
12
|
+
uniqueKey?: boolean;
|
|
13
|
+
primaryKey?: boolean;
|
|
14
|
+
collate?: string;
|
|
15
|
+
columnFormat?: ColumnFormat;
|
|
16
|
+
engineAttribute?: string;
|
|
17
|
+
secondaryEngineAttribute?: string;
|
|
18
|
+
}
|
|
19
|
+
interface IColumnTypeParams {
|
|
20
|
+
type: ColumnType;
|
|
21
|
+
}
|
|
22
|
+
interface BitParams extends IColumnTypeParams {
|
|
23
|
+
type: typeof ColumnType.BIT;
|
|
24
|
+
length?: number;
|
|
25
|
+
}
|
|
26
|
+
interface BoolParams extends IColumnTypeParams {
|
|
27
|
+
type: typeof ColumnType.BOOL;
|
|
25
28
|
}
|
|
26
29
|
interface BaseNumericParams extends IColumnTypeParams {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
length?: number;
|
|
31
|
+
unsigned?: boolean;
|
|
32
|
+
zeroFill?: boolean;
|
|
30
33
|
}
|
|
31
34
|
interface BaseFloatNumericParams extends IColumnTypeParams {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
length?: number;
|
|
36
|
+
fractionalLength?: number;
|
|
37
|
+
unsigned?: boolean;
|
|
38
|
+
zeroFill?: boolean;
|
|
36
39
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
interface TinyIntParams extends BaseNumericParams {
|
|
41
|
+
type: typeof ColumnType.TINYINT;
|
|
42
|
+
}
|
|
43
|
+
interface SmallIntParams extends BaseNumericParams {
|
|
44
|
+
type: typeof ColumnType.SMALLINT;
|
|
42
45
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
interface MediumIntParams extends BaseNumericParams {
|
|
47
|
+
type: typeof ColumnType.MEDIUMINT;
|
|
48
|
+
}
|
|
49
|
+
interface IntParams extends BaseNumericParams {
|
|
50
|
+
type: typeof ColumnType.INT;
|
|
51
|
+
}
|
|
52
|
+
interface BigIntParams extends BaseNumericParams {
|
|
53
|
+
type: typeof ColumnType.BIGINT;
|
|
54
|
+
}
|
|
55
|
+
interface DecimalParams extends BaseFloatNumericParams {
|
|
56
|
+
type: typeof ColumnType.DECIMAL;
|
|
54
57
|
}
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
interface FloatParams extends BaseFloatNumericParams {
|
|
59
|
+
type: typeof ColumnType.FLOAT;
|
|
57
60
|
}
|
|
58
|
-
|
|
59
|
-
|
|
61
|
+
interface DoubleParams extends BaseFloatNumericParams {
|
|
62
|
+
type: typeof ColumnType.DOUBLE;
|
|
60
63
|
}
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
interface DateParams extends IColumnTypeParams {
|
|
65
|
+
type: typeof ColumnType.DATE;
|
|
63
66
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
interface DateTimeParams extends IColumnTypeParams {
|
|
68
|
+
type: typeof ColumnType.DATETIME;
|
|
69
|
+
precision?: number;
|
|
70
|
+
autoUpdate?: boolean;
|
|
68
71
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
interface TimestampParams extends IColumnTypeParams {
|
|
73
|
+
type: typeof ColumnType.TIMESTAMP;
|
|
74
|
+
precision?: number;
|
|
75
|
+
autoUpdate?: boolean;
|
|
73
76
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
+
interface TimeParams extends IColumnTypeParams {
|
|
78
|
+
type: typeof ColumnType.TIME;
|
|
79
|
+
precision?: number;
|
|
77
80
|
}
|
|
78
|
-
|
|
79
|
-
|
|
81
|
+
interface YearParams extends IColumnTypeParams {
|
|
82
|
+
type: typeof ColumnType.YEAR;
|
|
80
83
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
interface CharParams extends IColumnTypeParams {
|
|
85
|
+
type: typeof ColumnType.CHAR;
|
|
86
|
+
length?: number;
|
|
87
|
+
characterSet?: string;
|
|
88
|
+
collate?: string;
|
|
86
89
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
interface VarCharParams extends IColumnTypeParams {
|
|
91
|
+
type: typeof ColumnType.VARCHAR;
|
|
92
|
+
length: number;
|
|
93
|
+
characterSet?: string;
|
|
94
|
+
collate?: string;
|
|
92
95
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
interface BinaryParams extends IColumnTypeParams {
|
|
97
|
+
type: typeof ColumnType.BINARY;
|
|
98
|
+
length?: number;
|
|
96
99
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
interface VarBinaryParams extends IColumnTypeParams {
|
|
101
|
+
type: typeof ColumnType.VARBINARY;
|
|
102
|
+
length: number;
|
|
100
103
|
}
|
|
101
|
-
|
|
102
|
-
|
|
104
|
+
interface TinyBlobParams extends IColumnTypeParams {
|
|
105
|
+
type: typeof ColumnType.TINYBLOB;
|
|
103
106
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
107
|
+
interface TinyTextParams extends IColumnTypeParams {
|
|
108
|
+
type: typeof ColumnType.TINYTEXT;
|
|
109
|
+
characterSet?: string;
|
|
110
|
+
collate?: string;
|
|
108
111
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
+
interface BlobParams extends IColumnTypeParams {
|
|
113
|
+
type: typeof ColumnType.BLOB;
|
|
114
|
+
length?: number;
|
|
112
115
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
interface TextParams extends IColumnTypeParams {
|
|
117
|
+
type: typeof ColumnType.TEXT;
|
|
118
|
+
length?: number;
|
|
119
|
+
characterSet?: string;
|
|
120
|
+
collate?: string;
|
|
118
121
|
}
|
|
119
|
-
|
|
120
|
-
|
|
122
|
+
interface MediumBlobParams extends IColumnTypeParams {
|
|
123
|
+
type: typeof ColumnType.MEDIUMBLOB;
|
|
121
124
|
}
|
|
122
|
-
|
|
123
|
-
|
|
125
|
+
interface LongBlobParams extends IColumnTypeParams {
|
|
126
|
+
type: typeof ColumnType.LONGBLOB;
|
|
124
127
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
128
|
+
interface MediumTextParams extends IColumnTypeParams {
|
|
129
|
+
type: typeof ColumnType.MEDIUMTEXT;
|
|
130
|
+
characterSet?: string;
|
|
131
|
+
collate?: string;
|
|
129
132
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
133
|
+
interface LongTextParams extends IColumnTypeParams {
|
|
134
|
+
type: typeof ColumnType.LONGTEXT;
|
|
135
|
+
characterSet?: string;
|
|
136
|
+
collate?: string;
|
|
134
137
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
interface EnumParams extends IColumnTypeParams {
|
|
139
|
+
type: typeof ColumnType.ENUM;
|
|
140
|
+
enums: string[];
|
|
141
|
+
characterSet?: string;
|
|
142
|
+
collate?: string;
|
|
140
143
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
interface SetParams extends IColumnTypeParams {
|
|
145
|
+
type: typeof ColumnType.SET;
|
|
146
|
+
enums: string[];
|
|
147
|
+
characterSet?: string;
|
|
148
|
+
collate?: string;
|
|
146
149
|
}
|
|
147
|
-
|
|
148
|
-
|
|
150
|
+
interface JsonParams extends IColumnTypeParams {
|
|
151
|
+
type: typeof ColumnType.JSON;
|
|
149
152
|
}
|
|
150
|
-
|
|
151
|
-
|
|
153
|
+
interface BaseSpatialParams extends IColumnTypeParams {
|
|
154
|
+
SRID?: number;
|
|
152
155
|
}
|
|
153
|
-
|
|
154
|
-
|
|
156
|
+
interface GeometryParams extends BaseSpatialParams {
|
|
157
|
+
type: typeof ColumnType.GEOMETRY;
|
|
155
158
|
}
|
|
156
|
-
|
|
157
|
-
|
|
159
|
+
interface PointParams extends BaseSpatialParams {
|
|
160
|
+
type: typeof ColumnType.POINT;
|
|
158
161
|
}
|
|
159
|
-
|
|
160
|
-
|
|
162
|
+
interface LinestringParams extends BaseSpatialParams {
|
|
163
|
+
type: typeof ColumnType.LINESTRING;
|
|
161
164
|
}
|
|
162
|
-
|
|
163
|
-
|
|
165
|
+
interface PolygonParams extends BaseSpatialParams {
|
|
166
|
+
type: typeof ColumnType.POLYGON;
|
|
167
|
+
}
|
|
168
|
+
interface MultiPointParams extends BaseSpatialParams {
|
|
169
|
+
type: typeof ColumnType.MULTIPOINT;
|
|
164
170
|
}
|
|
165
|
-
|
|
166
|
-
|
|
171
|
+
interface MultiLinestringParams extends BaseSpatialParams {
|
|
172
|
+
type: typeof ColumnType.MULTILINESTRING;
|
|
167
173
|
}
|
|
168
|
-
|
|
169
|
-
|
|
174
|
+
interface MultiPolygonParams extends BaseSpatialParams {
|
|
175
|
+
type: typeof ColumnType.MULTIPOLYGON;
|
|
170
176
|
}
|
|
171
|
-
|
|
172
|
-
|
|
177
|
+
interface GeometryCollectionParams extends BaseSpatialParams {
|
|
178
|
+
type: typeof ColumnType.GEOMETRYCOLLECTION;
|
|
173
179
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
export type ColumnTypeParams = BitParams | BoolParams | TinyIntParams | SmallIntParams | MediumIntParams | IntParams | BigIntParams | DecimalParams | FloatParams | DoubleParams | DateParams | DateTimeParams | TimestampParams | TimeParams | YearParams | CharParams | VarCharParams | BinaryParams | VarBinaryParams | TinyBlobParams | TinyTextParams | BlobParams | TextParams | MediumBlobParams | MediumTextParams | LongBlobParams | LongTextParams | EnumParams | SetParams | JsonParams | GeometryParams | PointParams | LinestringParams | PolygonParams | MultiPointParams | MultiLinestringParams | MultiPolygonParams | GeometryCollectionParams;
|
|
178
|
-
export {};
|
|
180
|
+
type ColumnTypeParams = BitParams | BoolParams | TinyIntParams | SmallIntParams | MediumIntParams | IntParams | BigIntParams | DecimalParams | FloatParams | DoubleParams | DateParams | DateTimeParams | TimestampParams | TimeParams | YearParams | CharParams | VarCharParams | BinaryParams | VarBinaryParams | TinyBlobParams | TinyTextParams | BlobParams | TextParams | MediumBlobParams | MediumTextParams | LongBlobParams | LongTextParams | EnumParams | SetParams | JsonParams | GeometryParams | PointParams | LinestringParams | PolygonParams | MultiPointParams | MultiLinestringParams | MultiPolygonParams | GeometryCollectionParams;
|
|
181
|
+
//#endregion
|
|
182
|
+
export { BaseSpatialParams, BigIntParams, BinaryParams, BitParams, BlobParams, BoolParams, CharParams, ColumnParams, ColumnTypeParams, DateParams, DateTimeParams, DecimalParams, DoubleParams, EnumParams, FloatParams, GeometryCollectionParams, GeometryParams, IColumnTypeParams, IntParams, JsonParams, LinestringParams, LongBlobParams, LongTextParams, MediumBlobParams, MediumIntParams, MediumTextParams, MultiLinestringParams, MultiPointParams, MultiPolygonParams, PointParams, PolygonParams, SetParams, SmallIntParams, TextParams, TimeParams, TimestampParams, TinyBlobParams, TinyIntParams, TinyTextParams, VarBinaryParams, VarCharParams, YearParams };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29sdW1uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2RhbC9kZWNvcmF0b3IvQ29sdW1uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
1
|
+
export { };
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region src/dal/decorator/DataSourceQualifier.d.ts
|
|
2
|
+
declare const DataSourceQualifierAttribute: symbol;
|
|
3
|
+
declare const DataSourceInjectName = "dataSource";
|
|
4
|
+
//#endregion
|
|
5
|
+
export { DataSourceInjectName, DataSourceQualifierAttribute };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
//#region src/dal/decorator/DataSourceQualifier.ts
|
|
2
|
+
const DataSourceQualifierAttribute = Symbol("Qualifier.DataSource");
|
|
3
|
+
const DataSourceInjectName = "dataSource";
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
export { DataSourceInjectName, DataSourceQualifierAttribute };
|
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { CompressionType } from "../enum/CompressionType.js";
|
|
2
|
+
import { InsertMethod } from "../enum/InsertMethod.js";
|
|
3
|
+
import { RowFormat } from "../enum/RowFormat.js";
|
|
4
|
+
|
|
5
|
+
//#region src/dal/decorator/Table.d.ts
|
|
6
|
+
interface TableParams {
|
|
7
|
+
name?: string;
|
|
8
|
+
dataSourceName?: string;
|
|
9
|
+
comment?: string;
|
|
10
|
+
autoExtendSize?: number;
|
|
11
|
+
autoIncrement?: number;
|
|
12
|
+
avgRowLength?: number;
|
|
13
|
+
characterSet?: string;
|
|
14
|
+
collate?: string;
|
|
15
|
+
compression?: CompressionType;
|
|
16
|
+
encryption?: boolean;
|
|
17
|
+
engine?: string;
|
|
18
|
+
engineAttribute?: string;
|
|
19
|
+
insertMethod?: InsertMethod;
|
|
20
|
+
keyBlockSize?: number;
|
|
21
|
+
maxRows?: number;
|
|
22
|
+
minRows?: number;
|
|
23
|
+
rowFormat?: RowFormat;
|
|
24
|
+
secondaryEngineAttribute?: string;
|
|
21
25
|
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { TableParams };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVGFibGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZGFsL2RlY29yYXRvci9UYWJsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
|
1
|
+
export { };
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { IndexStoreType } from "../enum/IndexStoreType.js";
|
|
2
|
+
import { IndexType } from "../enum/IndexType.js";
|
|
3
|
+
import { BaseSpatialParams, BigIntParams, BinaryParams, BitParams, BlobParams, BoolParams, CharParams, ColumnParams, ColumnTypeParams, DateParams, DateTimeParams, DecimalParams, DoubleParams, EnumParams, FloatParams, GeometryCollectionParams, GeometryParams, IColumnTypeParams, IntParams, JsonParams, LinestringParams, LongBlobParams, LongTextParams, MediumBlobParams, MediumIntParams, MediumTextParams, MultiLinestringParams, MultiPointParams, MultiPolygonParams, PointParams, PolygonParams, SetParams, SmallIntParams, TextParams, TimeParams, TimestampParams, TinyBlobParams, TinyIntParams, TinyTextParams, VarBinaryParams, VarCharParams, YearParams } from "./Column.js";
|
|
4
|
+
import { DataSourceInjectName, DataSourceQualifierAttribute } from "./DataSourceQualifier.js";
|
|
5
|
+
import { TableParams } from "./Table.js";
|
|
6
|
+
|
|
7
|
+
//#region src/dal/decorator/index.d.ts
|
|
8
|
+
interface IndexParams {
|
|
9
|
+
keys: string[];
|
|
10
|
+
name?: string;
|
|
11
|
+
type?: IndexType;
|
|
12
|
+
storeType?: IndexStoreType;
|
|
13
|
+
comment?: string;
|
|
14
|
+
engineAttribute?: string;
|
|
15
|
+
secondaryEngineAttribute?: string;
|
|
16
|
+
parser?: string;
|
|
11
17
|
}
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
export * from './Table.ts';
|
|
18
|
+
//#endregion
|
|
19
|
+
export { BaseSpatialParams, BigIntParams, BinaryParams, BitParams, BlobParams, BoolParams, CharParams, ColumnParams, ColumnTypeParams, DataSourceInjectName, DataSourceQualifierAttribute, DateParams, DateTimeParams, DecimalParams, DoubleParams, EnumParams, FloatParams, GeometryCollectionParams, GeometryParams, IColumnTypeParams, IndexParams, IntParams, JsonParams, LinestringParams, LongBlobParams, LongTextParams, MediumBlobParams, MediumIntParams, MediumTextParams, MultiLinestringParams, MultiPointParams, MultiPolygonParams, PointParams, PolygonParams, SetParams, SmallIntParams, TableParams, TextParams, TimeParams, TimestampParams, TinyBlobParams, TinyIntParams, TinyTextParams, VarBinaryParams, VarCharParams, YearParams };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZGFsL2RlY29yYXRvci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFhQSxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsWUFBWSxDQUFDIn0=
|
|
1
|
+
import { DataSourceInjectName, DataSourceQualifierAttribute } from "./DataSourceQualifier.js";
|
|
2
|
+
|
|
3
|
+
export { DataSourceInjectName, DataSourceQualifierAttribute };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region src/dal/enum/ColumnFormat.d.ts
|
|
2
|
+
declare const ColumnFormat: {
|
|
3
|
+
readonly FIXED: "FIXED";
|
|
4
|
+
readonly DYNAMIC: "DYNAMIC";
|
|
5
|
+
readonly DEFAULT: "DEFAULT";
|
|
5
6
|
};
|
|
6
|
-
|
|
7
|
+
type ColumnFormat = (typeof ColumnFormat)[keyof typeof ColumnFormat];
|
|
8
|
+
//#endregion
|
|
9
|
+
export { ColumnFormat };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region src/dal/enum/ColumnFormat.ts
|
|
2
|
+
const ColumnFormat = {
|
|
3
|
+
FIXED: "FIXED",
|
|
4
|
+
DYNAMIC: "DYNAMIC",
|
|
5
|
+
DEFAULT: "DEFAULT"
|
|
5
6
|
};
|
|
6
|
-
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { ColumnFormat };
|
|
@@ -1,41 +1,44 @@
|
|
|
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
|
-
|
|
1
|
+
//#region src/dal/enum/ColumnType.d.ts
|
|
2
|
+
declare const ColumnType: {
|
|
3
|
+
readonly BIT: "BIT";
|
|
4
|
+
readonly TINYINT: "TINYINT";
|
|
5
|
+
readonly BOOL: "BOOL";
|
|
6
|
+
readonly SMALLINT: "SMALLINT";
|
|
7
|
+
readonly MEDIUMINT: "MEDIUMINT";
|
|
8
|
+
readonly INT: "INT";
|
|
9
|
+
readonly BIGINT: "BIGINT";
|
|
10
|
+
readonly DECIMAL: "DECIMAL";
|
|
11
|
+
readonly FLOAT: "FLOAT";
|
|
12
|
+
readonly DOUBLE: "DOUBLE";
|
|
13
|
+
readonly DATE: "DATE";
|
|
14
|
+
readonly DATETIME: "DATETIME";
|
|
15
|
+
readonly TIMESTAMP: "TIMESTAMP";
|
|
16
|
+
readonly TIME: "TIME";
|
|
17
|
+
readonly YEAR: "YEAR";
|
|
18
|
+
readonly CHAR: "CHAR";
|
|
19
|
+
readonly VARCHAR: "VARCHAR";
|
|
20
|
+
readonly BINARY: "BINARY";
|
|
21
|
+
readonly VARBINARY: "VARBINARY";
|
|
22
|
+
readonly TINYBLOB: "TINYBLOB";
|
|
23
|
+
readonly TINYTEXT: "TINYTEXT";
|
|
24
|
+
readonly BLOB: "BLOB";
|
|
25
|
+
readonly TEXT: "TEXT";
|
|
26
|
+
readonly MEDIUMBLOB: "MEDIUMBLOB";
|
|
27
|
+
readonly MEDIUMTEXT: "MEDIUMTEXT";
|
|
28
|
+
readonly LONGBLOB: "LONGBLOB";
|
|
29
|
+
readonly LONGTEXT: "LONGTEXT";
|
|
30
|
+
readonly ENUM: "ENUM";
|
|
31
|
+
readonly SET: "SET";
|
|
32
|
+
readonly JSON: "JSON";
|
|
33
|
+
readonly GEOMETRY: "GEOMETRY";
|
|
34
|
+
readonly POINT: "POINT";
|
|
35
|
+
readonly LINESTRING: "LINESTRING";
|
|
36
|
+
readonly POLYGON: "POLYGON";
|
|
37
|
+
readonly MULTIPOINT: "MULTIPOINT";
|
|
38
|
+
readonly MULTILINESTRING: "MULTILINESTRING";
|
|
39
|
+
readonly MULTIPOLYGON: "MULTIPOLYGON";
|
|
40
|
+
readonly GEOMETRYCOLLECTION: "GEOMETRYCOLLECTION";
|
|
40
41
|
};
|
|
41
|
-
|
|
42
|
+
type ColumnType = (typeof ColumnType)[keyof typeof ColumnType];
|
|
43
|
+
//#endregion
|
|
44
|
+
export { ColumnType };
|