@eggjs/tegg-types 4.0.0-beta.9 → 4.0.1-beta.0
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 +28 -23
- package/dist/aop/Pointcut.js +10 -17
- 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 +8 -4
- package/dist/controller-decorator/HTTPController.js +1 -2
- package/dist/controller-decorator/HTTPMethod.d.ts +11 -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/MCPController.d.ts +10 -0
- package/dist/controller-decorator/MCPController.js +1 -0
- package/dist/controller-decorator/MCPPromptParams.d.ts +16 -0
- package/dist/controller-decorator/MCPPromptParams.js +1 -0
- package/dist/controller-decorator/MCPResourceParams.d.ts +22 -0
- package/dist/controller-decorator/MCPResourceParams.js +1 -0
- package/dist/controller-decorator/MCPToolParams.d.ts +15 -0
- package/dist/controller-decorator/MCPToolParams.js +1 -0
- package/dist/controller-decorator/MetadataKey.d.ts +37 -20
- package/dist/controller-decorator/MetadataKey.js +38 -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 +14 -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 +58 -45
- package/dist/controller-decorator/model/types.js +47 -42
- 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 +8 -4
- package/dist/core-decorator/enum/AccessLevel.js +8 -8
- package/dist/core-decorator/enum/EggType.d.ts +8 -4
- package/dist/core-decorator/enum/EggType.js +8 -6
- package/dist/core-decorator/enum/InjectType.d.ts +8 -4
- package/dist/core-decorator/enum/InjectType.js +8 -6
- package/dist/core-decorator/enum/MultiInstanceType.d.ts +8 -4
- package/dist/core-decorator/enum/MultiInstanceType.js +8 -6
- package/dist/core-decorator/enum/ObjectInitType.d.ts +11 -7
- package/dist/core-decorator/enum/ObjectInitType.js +13 -14
- 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 +9 -5
- package/dist/dal/enum/ColumnFormat.js +9 -7
- package/dist/dal/enum/ColumnType.d.ts +44 -40
- package/dist/dal/enum/ColumnType.js +44 -48
- package/dist/dal/enum/CompressionType.d.ts +9 -5
- package/dist/dal/enum/CompressionType.js +9 -7
- package/dist/dal/enum/IndexStoreType.d.ts +8 -4
- package/dist/dal/enum/IndexStoreType.js +8 -6
- package/dist/dal/enum/IndexType.d.ts +11 -7
- package/dist/dal/enum/IndexType.js +11 -9
- package/dist/dal/enum/InsertMethod.d.ts +9 -5
- package/dist/dal/enum/InsertMethod.js +9 -7
- package/dist/dal/enum/RowFormat.d.ts +12 -8
- package/dist/dal/enum/RowFormat.js +12 -10
- package/dist/dal/enum/SqlType.d.ts +11 -7
- package/dist/dal/enum/SqlType.js +11 -9
- package/dist/dal/enum/Templates.d.ts +9 -5
- package/dist/dal/enum/Templates.js +9 -7
- 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 +77 -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 +7 -3
- package/dist/metadata/enum/ProtoDescriptorType.js +5 -5
- package/dist/metadata/enum/index.d.ts +2 -1
- package/dist/metadata/enum/index.js +3 -2
- package/dist/metadata/errors.d.ts +9 -5
- package/dist/metadata/errors.js +9 -7
- 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 +32 -26
- package/dist/metadata/model/LoadUnit.js +9 -7
- 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 +28 -22
- package/dist/runtime/model/EggObject.js +11 -9
- 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 +44 -25
- package/dist/schedule.js +12 -10
- package/dist/transaction.d.ts +25 -21
- package/dist/transaction.js +10 -10
- package/package.json +35 -31
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
//#region src/core-decorator/model/InjectObjectInfo.d.ts
|
|
2
|
+
type EggObjectName = PropertyKey;
|
|
3
|
+
interface InjectObjectInfo {
|
|
4
|
+
/**
|
|
5
|
+
* property name obj inject to
|
|
6
|
+
*/
|
|
7
|
+
refName: PropertyKey;
|
|
8
|
+
/**
|
|
9
|
+
* obj's name will be injected
|
|
10
|
+
*/
|
|
11
|
+
objName: EggObjectName;
|
|
12
|
+
/**
|
|
13
|
+
* optional inject
|
|
14
|
+
*/
|
|
15
|
+
optional?: boolean;
|
|
15
16
|
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { EggObjectName, InjectObjectInfo };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSW5qZWN0T2JqZWN0SW5mby5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb3JlLWRlY29yYXRvci9tb2RlbC9JbmplY3RPYmplY3RJbmZvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
1
|
+
export { };
|
|
@@ -1,38 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region src/core-decorator/model/QualifierInfo.d.ts
|
|
2
|
+
type QualifierAttribute = symbol | string;
|
|
3
|
+
type QualifierValue = string | number;
|
|
3
4
|
/**
|
|
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
|
-
|
|
5
|
+
* To locate prototype
|
|
6
|
+
*
|
|
7
|
+
* Example:
|
|
8
|
+
* Has a decorator named HelloService
|
|
9
|
+
* value is:
|
|
10
|
+
* - Email
|
|
11
|
+
* - Message
|
|
12
|
+
*
|
|
13
|
+
* interface HelloService {
|
|
14
|
+
* hello(name: string): Promise<void>;
|
|
15
|
+
* }
|
|
16
|
+
*
|
|
17
|
+
* \@ContextProto({ name: 'helloService' })
|
|
18
|
+
* \@HelloService(HelloServiceType.Email)
|
|
19
|
+
* class EmailHelloService implement HelloService {
|
|
20
|
+
* ...
|
|
21
|
+
* }
|
|
22
|
+
*
|
|
23
|
+
* \@ContextProto({ name: 'helloService' })
|
|
24
|
+
* \@HelloService(HelloServiceType.Message)
|
|
25
|
+
* class MessageHelloService implement HelloService {
|
|
26
|
+
* ...
|
|
27
|
+
* }
|
|
28
|
+
*
|
|
29
|
+
* \@ContextProto()
|
|
30
|
+
* class HelloFacade {
|
|
31
|
+
* \@Inject
|
|
32
|
+
* \@HelloService(HelloServiceType.Message)
|
|
33
|
+
* helloService: HelloService;
|
|
34
|
+
* }
|
|
35
|
+
*/
|
|
36
|
+
interface QualifierInfo {
|
|
37
|
+
attribute: QualifierAttribute;
|
|
38
|
+
value: QualifierValue;
|
|
38
39
|
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { QualifierAttribute, QualifierInfo, QualifierValue };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUXVhbGlmaWVySW5mby5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb3JlLWRlY29yYXRvci9tb2RlbC9RdWFsaWZpZXJJbmZvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
1
|
+
export { };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { QualifierAttribute, QualifierInfo, QualifierValue } from "./QualifierInfo.js";
|
|
2
|
+
import { EggProtoImplClass, EggPrototypeInfo, EggPrototypeName } from "./EggPrototypeInfo.js";
|
|
3
|
+
import { EggMultiInstanceCallbackPrototypeInfo, EggMultiInstancePrototypeInfo, MultiInstancePrototypeGetObjectsContext, ObjectInfo } from "./EggMultiInstancePrototypeInfo.js";
|
|
4
|
+
import { EggObjectName, InjectObjectInfo } from "./InjectObjectInfo.js";
|
|
5
|
+
import { InjectConstructorInfo } from "./InjectConstructorInfo.js";
|
|
6
|
+
export { EggMultiInstanceCallbackPrototypeInfo, EggMultiInstancePrototypeInfo, EggObjectName, EggProtoImplClass, EggPrototypeInfo, EggPrototypeName, InjectConstructorInfo, InjectObjectInfo, MultiInstancePrototypeGetObjectsContext, ObjectInfo, QualifierAttribute, QualifierInfo, QualifierValue };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
export * from "./QualifierInfo.js";
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29yZS1kZWNvcmF0b3IvbW9kZWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvQ0FBb0MsQ0FBQztBQUNuRCxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyx1QkFBdUIsQ0FBQztBQUN0QyxjQUFjLG9CQUFvQixDQUFDIn0=
|
|
1
|
+
import "./EggPrototypeInfo.js";
|
|
2
|
+
import "./EggMultiInstancePrototypeInfo.js";
|
|
3
|
+
|
|
4
|
+
export { };
|
package/dist/dal/Qualifier.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
//#region src/dal/Qualifier.d.ts
|
|
2
|
+
declare const DAL_COLUMN_INFO_MAP: symbol;
|
|
3
|
+
declare const DAL_COLUMN_TYPE_MAP: symbol;
|
|
4
|
+
declare const DAL_INDEX_LIST: symbol;
|
|
5
|
+
declare const DAL_IS_TABLE: symbol;
|
|
6
|
+
declare const DAL_TABLE_PARAMS: symbol;
|
|
7
|
+
declare const DAL_IS_DAO: symbol;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS };
|
package/dist/dal/Qualifier.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
//#region src/dal/Qualifier.ts
|
|
2
|
+
const DAL_COLUMN_INFO_MAP = Symbol.for("EggPrototype#dalColumnInfoMap");
|
|
3
|
+
const DAL_COLUMN_TYPE_MAP = Symbol.for("EggPrototype#dalColumnTypeMap");
|
|
4
|
+
const DAL_INDEX_LIST = Symbol.for("EggPrototype#dalIndexList");
|
|
5
|
+
const DAL_IS_TABLE = Symbol.for("EggPrototype#dalIsTable");
|
|
6
|
+
const DAL_TABLE_PARAMS = Symbol.for("EggPrototype#dalTableParams");
|
|
7
|
+
const DAL_IS_DAO = Symbol.for("EggPrototype#dalIsDao");
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS };
|
|
@@ -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 };
|