@eggjs/tegg-types 4.0.0-beta.4 → 4.0.0-beta.6
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/README.md +12 -0
- package/dist/aop/Advice.d.ts +42 -0
- package/dist/aop/Advice.js +1 -0
- package/dist/aop/Aspect.d.ts +17 -0
- package/dist/aop/Aspect.js +5 -0
- package/dist/aop/Crosscut.d.ts +32 -0
- package/dist/aop/Crosscut.js +6 -0
- package/dist/aop/Pointcut.d.ts +29 -0
- package/dist/aop/Pointcut.js +20 -0
- package/dist/aop/index.d.ts +5 -0
- package/dist/aop/index.js +5 -0
- package/dist/common/Graph.d.ts +6 -0
- package/dist/common/Graph.js +1 -0
- package/dist/common/Logger.d.ts +10 -0
- package/dist/common/Logger.js +1 -0
- package/dist/common/ModuleConfig.d.ts +29 -0
- package/dist/common/ModuleConfig.js +1 -0
- package/dist/common/RuntimeConfig.d.ts +18 -0
- package/dist/common/RuntimeConfig.js +1 -0
- package/dist/common/index.d.ts +5 -0
- package/dist/common/index.js +1 -0
- package/dist/controller-decorator/HTTPController.d.ts +8 -0
- package/dist/controller-decorator/HTTPController.js +1 -0
- package/dist/controller-decorator/HTTPMethod.d.ts +10 -0
- package/dist/controller-decorator/HTTPMethod.js +1 -0
- package/dist/controller-decorator/HTTPParam.d.ts +12 -0
- package/dist/controller-decorator/HTTPParam.js +1 -0
- package/dist/controller-decorator/MetadataKey.d.ts +23 -0
- package/dist/controller-decorator/MetadataKey.js +24 -0
- package/dist/controller-decorator/builder.d.ts +10 -0
- package/dist/controller-decorator/builder.js +1 -0
- package/dist/controller-decorator/index.d.ts +9 -0
- package/dist/controller-decorator/index.js +4 -0
- package/dist/controller-decorator/model/ControllerMetadata.d.ts +15 -0
- package/dist/controller-decorator/model/ControllerMetadata.js +1 -0
- package/dist/controller-decorator/model/MethodMeta.d.ts +10 -0
- package/dist/controller-decorator/model/MethodMeta.js +1 -0
- package/dist/controller-decorator/model/index.d.ts +4 -0
- package/dist/controller-decorator/model/index.js +3 -0
- package/dist/controller-decorator/model/types.d.ts +49 -0
- package/dist/controller-decorator/model/types.js +45 -0
- package/dist/core-decorator/ContextProto.d.ts +10 -0
- package/dist/core-decorator/ContextProto.js +3 -0
- package/dist/core-decorator/Inject.d.ts +7 -0
- package/dist/core-decorator/Inject.js +1 -0
- package/dist/core-decorator/Metadata.d.ts +4 -0
- package/dist/core-decorator/Metadata.js +1 -0
- package/dist/core-decorator/MultiInstanceProto.d.ts +31 -0
- package/dist/core-decorator/MultiInstanceProto.js +1 -0
- package/dist/core-decorator/Prototype.d.ts +13 -0
- package/dist/core-decorator/Prototype.js +5 -0
- package/dist/core-decorator/SingletonProto.d.ts +10 -0
- package/dist/core-decorator/SingletonProto.js +1 -0
- package/dist/core-decorator/enum/AccessLevel.d.ts +7 -0
- package/dist/core-decorator/enum/AccessLevel.js +9 -0
- package/dist/core-decorator/enum/EggType.d.ts +7 -0
- package/dist/core-decorator/enum/EggType.js +9 -0
- package/dist/core-decorator/enum/InjectType.d.ts +7 -0
- package/dist/core-decorator/enum/InjectType.js +9 -0
- package/dist/core-decorator/enum/MultiInstanceType.d.ts +7 -0
- package/dist/core-decorator/enum/MultiInstanceType.js +9 -0
- package/dist/core-decorator/enum/ObjectInitType.d.ts +10 -0
- package/dist/core-decorator/enum/ObjectInitType.js +15 -0
- package/dist/core-decorator/enum/Qualifier.d.ts +10 -0
- package/dist/core-decorator/enum/Qualifier.js +11 -0
- package/dist/core-decorator/enum/index.d.ts +7 -0
- package/dist/core-decorator/enum/index.js +8 -0
- package/dist/core-decorator/index.d.ts +18 -0
- package/dist/core-decorator/index.js +12 -0
- package/dist/core-decorator/model/EggMultiInstancePrototypeInfo.d.ts +62 -0
- package/dist/core-decorator/model/EggMultiInstancePrototypeInfo.js +4 -0
- package/dist/core-decorator/model/EggPrototypeInfo.d.ts +39 -0
- package/dist/core-decorator/model/EggPrototypeInfo.js +3 -0
- package/dist/core-decorator/model/InjectConstructorInfo.d.ts +23 -0
- package/dist/core-decorator/model/InjectConstructorInfo.js +1 -0
- package/dist/core-decorator/model/InjectObjectInfo.d.ts +18 -0
- package/dist/core-decorator/model/InjectObjectInfo.js +1 -0
- package/{core-decorator → dist/core-decorator}/model/QualifierInfo.d.ts +8 -5
- package/dist/core-decorator/model/QualifierInfo.js +1 -0
- package/dist/core-decorator/model/index.d.ts +6 -0
- package/dist/core-decorator/model/index.js +4 -0
- package/dist/dal/Qualifier.d.ts +9 -0
- package/dist/dal/Qualifier.js +10 -0
- package/dist/dal/decorator/Column.d.ts +182 -0
- package/dist/dal/decorator/Column.js +1 -0
- package/dist/dal/decorator/DataSourceQualifier.d.ts +5 -0
- package/dist/dal/decorator/DataSourceQualifier.js +6 -0
- package/dist/dal/decorator/Table.d.ts +27 -0
- package/dist/dal/decorator/Table.js +1 -0
- package/dist/dal/decorator/index.d.ts +19 -0
- package/dist/dal/decorator/index.js +3 -0
- package/dist/dal/enum/ColumnFormat.d.ts +8 -0
- package/dist/dal/enum/ColumnFormat.js +10 -0
- package/dist/dal/enum/ColumnType.d.ts +43 -0
- package/dist/dal/enum/ColumnType.js +45 -0
- package/dist/dal/enum/CompressionType.d.ts +8 -0
- package/dist/dal/enum/CompressionType.js +10 -0
- package/dist/dal/enum/IndexStoreType.d.ts +7 -0
- package/dist/dal/enum/IndexStoreType.js +9 -0
- package/dist/dal/enum/IndexType.d.ts +10 -0
- package/dist/dal/enum/IndexType.js +12 -0
- package/dist/dal/enum/InsertMethod.d.ts +8 -0
- package/dist/dal/enum/InsertMethod.js +10 -0
- package/dist/dal/enum/RowFormat.d.ts +11 -0
- package/dist/dal/enum/RowFormat.js +13 -0
- package/dist/dal/enum/SqlType.d.ts +10 -0
- package/dist/dal/enum/SqlType.js +12 -0
- package/dist/dal/enum/Templates.d.ts +8 -0
- package/dist/dal/enum/Templates.js +10 -0
- package/dist/dal/enum/index.d.ts +10 -0
- package/dist/dal/enum/index.js +11 -0
- package/dist/dal/index.d.ts +21 -0
- package/dist/dal/index.js +14 -0
- package/dist/dal/type/BaseDao.d.ts +13 -0
- package/dist/dal/type/BaseDao.js +1 -0
- package/dist/dal/type/CodeGenerator.d.ts +9 -0
- package/dist/dal/type/CodeGenerator.js +1 -0
- package/dist/dal/type/ColumnTsType.d.ts +45 -0
- package/dist/dal/type/ColumnTsType.js +1 -0
- package/dist/dal/type/DateSource.d.ts +16 -0
- package/dist/dal/type/DateSource.js +1 -0
- package/dist/dal/type/Spatial.d.ts +14 -0
- package/dist/dal/type/Spatial.js +1 -0
- package/dist/dal/type/SqlMap.d.ts +22 -0
- package/dist/dal/type/SqlMap.js +1 -0
- package/dist/dal/type/index.d.ts +7 -0
- package/dist/dal/type/index.js +1 -0
- package/dist/dynamic-inject.d.ts +18 -0
- package/dist/dynamic-inject.js +5 -0
- package/dist/index.d.ts +72 -0
- package/dist/index.js +38 -0
- package/dist/lifecycle/EggObjectLifecycle.d.ts +40 -0
- package/dist/lifecycle/EggObjectLifecycle.js +1 -0
- package/dist/lifecycle/IdenticalObject.d.ts +7 -0
- package/dist/lifecycle/IdenticalObject.js +1 -0
- package/dist/lifecycle/LifecycleHook.d.ts +16 -0
- package/dist/lifecycle/LifecycleHook.js +1 -0
- package/dist/lifecycle/index.d.ts +4 -0
- package/dist/lifecycle/index.js +1 -0
- package/dist/metadata/enum/ProtoDescriptorType.d.ts +6 -0
- package/dist/metadata/enum/ProtoDescriptorType.js +8 -0
- package/dist/metadata/enum/index.d.ts +2 -0
- package/dist/metadata/enum/index.js +3 -0
- package/dist/metadata/errors.d.ts +8 -0
- package/dist/metadata/errors.js +10 -0
- package/dist/metadata/index.d.ts +7 -0
- package/dist/metadata/index.js +6 -0
- package/dist/metadata/model/EggPrototype.d.ts +145 -0
- package/dist/metadata/model/EggPrototype.js +3 -0
- package/dist/metadata/model/LoadUnit.d.ts +34 -0
- package/dist/metadata/model/LoadUnit.js +10 -0
- package/dist/metadata/model/Loader.d.ts +12 -0
- package/dist/metadata/model/Loader.js +1 -0
- package/dist/metadata/model/ProtoDescriptor.d.ts +29 -0
- package/dist/metadata/model/ProtoDescriptor.js +3 -0
- package/dist/metadata/model/index.d.ts +5 -0
- package/dist/metadata/model/index.js +5 -0
- package/dist/orm.d.ts +33 -0
- package/dist/orm.js +10 -0
- package/dist/runtime/Factory.d.ts +11 -0
- package/dist/runtime/Factory.js +1 -0
- package/dist/runtime/index.d.ts +6 -0
- package/dist/runtime/index.js +3 -0
- package/dist/runtime/model/EggContainer.d.ts +16 -0
- package/dist/runtime/model/EggContainer.js +1 -0
- package/dist/runtime/model/EggContext.d.ts +10 -0
- package/dist/runtime/model/EggContext.js +1 -0
- package/dist/runtime/model/EggObject.d.ts +29 -0
- package/dist/runtime/model/EggObject.js +12 -0
- package/dist/runtime/model/LoadUnitInstance.d.ts +13 -0
- package/dist/runtime/model/LoadUnitInstance.js +1 -0
- package/dist/runtime/model/index.d.ts +5 -0
- package/dist/runtime/model/index.js +3 -0
- package/dist/schedule.d.ts +33 -0
- package/dist/schedule.js +13 -0
- package/dist/transaction.d.ts +26 -0
- package/dist/transaction.js +13 -0
- package/package.json +109 -67
- package/aop/Advice.d.ts +0 -39
- package/aop/Advice.js +0 -2
- package/aop/Aspect.d.ts +0 -13
- package/aop/Aspect.js +0 -2
- package/aop/Crosscut.d.ts +0 -28
- package/aop/Crosscut.js +0 -3
- package/aop/Pointcut.d.ts +0 -25
- package/aop/Pointcut.js +0 -17
- package/aop/index.d.ts +0 -4
- package/aop/index.js +0 -5
- package/common/Graph.d.ts +0 -3
- package/common/Graph.js +0 -2
- package/common/Logger.d.ts +0 -7
- package/common/Logger.js +0 -2
- package/common/ModuleConfig.d.ts +0 -27
- package/common/ModuleConfig.js +0 -2
- package/common/RuntimeConfig.d.ts +0 -15
- package/common/RuntimeConfig.js +0 -2
- package/common/index.d.ts +0 -4
- package/common/index.js +0 -5
- package/controller-decorator/HTTPController.d.ts +0 -5
- package/controller-decorator/HTTPController.js +0 -2
- package/controller-decorator/HTTPMethod.d.ts +0 -6
- package/controller-decorator/HTTPMethod.js +0 -2
- package/controller-decorator/HTTPParam.d.ts +0 -9
- package/controller-decorator/HTTPParam.js +0 -2
- package/controller-decorator/MetadataKey.d.ts +0 -20
- package/controller-decorator/MetadataKey.js +0 -21
- package/controller-decorator/builder.d.ts +0 -6
- package/controller-decorator/builder.js +0 -2
- package/controller-decorator/index.d.ts +0 -6
- package/controller-decorator/index.js +0 -7
- package/controller-decorator/model/ControllerMetadata.d.ts +0 -11
- package/controller-decorator/model/ControllerMetadata.js +0 -2
- package/controller-decorator/model/MethodMeta.d.ts +0 -6
- package/controller-decorator/model/MethodMeta.js +0 -2
- package/controller-decorator/model/index.d.ts +0 -3
- package/controller-decorator/model/index.js +0 -4
- package/controller-decorator/model/types.d.ts +0 -45
- package/controller-decorator/model/types.js +0 -42
- package/core-decorator/ContextProto.d.ts +0 -6
- package/core-decorator/ContextProto.js +0 -2
- package/core-decorator/Inject.d.ts +0 -4
- package/core-decorator/Inject.js +0 -2
- package/core-decorator/Metadata.d.ts +0 -1
- package/core-decorator/Metadata.js +0 -2
- package/core-decorator/MultiInstanceProto.d.ts +0 -26
- package/core-decorator/MultiInstanceProto.js +0 -2
- package/core-decorator/Prototype.d.ts +0 -8
- package/core-decorator/Prototype.js +0 -2
- package/core-decorator/SingletonProto.d.ts +0 -6
- package/core-decorator/SingletonProto.js +0 -2
- package/core-decorator/enum/AccessLevel.d.ts +0 -4
- package/core-decorator/enum/AccessLevel.js +0 -8
- package/core-decorator/enum/EggType.d.ts +0 -4
- package/core-decorator/enum/EggType.js +0 -6
- package/core-decorator/enum/InjectType.d.ts +0 -4
- package/core-decorator/enum/InjectType.js +0 -6
- package/core-decorator/enum/MultiInstanceType.d.ts +0 -4
- package/core-decorator/enum/MultiInstanceType.js +0 -6
- package/core-decorator/enum/ObjectInitType.d.ts +0 -7
- package/core-decorator/enum/ObjectInitType.js +0 -15
- package/core-decorator/enum/Qualifier.d.ts +0 -7
- package/core-decorator/enum/Qualifier.js +0 -8
- package/core-decorator/enum/index.d.ts +0 -6
- package/core-decorator/enum/index.js +0 -7
- package/core-decorator/index.d.ts +0 -8
- package/core-decorator/index.js +0 -9
- package/core-decorator/model/EggMultiInstancePrototypeInfo.d.ts +0 -57
- package/core-decorator/model/EggMultiInstancePrototypeInfo.js +0 -2
- package/core-decorator/model/EggPrototypeInfo.d.ts +0 -34
- package/core-decorator/model/EggPrototypeInfo.js +0 -2
- package/core-decorator/model/InjectConstructorInfo.d.ts +0 -19
- package/core-decorator/model/InjectConstructorInfo.js +0 -2
- package/core-decorator/model/InjectObjectInfo.d.ts +0 -15
- package/core-decorator/model/InjectObjectInfo.js +0 -2
- package/core-decorator/model/QualifierInfo.js +0 -2
- package/core-decorator/model/index.d.ts +0 -5
- package/core-decorator/model/index.js +0 -6
- package/dal/Qualifier.d.ts +0 -6
- package/dal/Qualifier.js +0 -7
- package/dal/decorator/Column.d.ts +0 -178
- package/dal/decorator/Column.js +0 -2
- package/dal/decorator/DataSourceQualifier.d.ts +0 -2
- package/dal/decorator/DataSourceQualifier.js +0 -3
- package/dal/decorator/Table.d.ts +0 -21
- package/dal/decorator/Table.js +0 -2
- package/dal/decorator/index.d.ts +0 -14
- package/dal/decorator/index.js +0 -4
- package/dal/enum/ColumnFormat.d.ts +0 -5
- package/dal/enum/ColumnFormat.js +0 -7
- package/dal/enum/ColumnType.d.ts +0 -40
- package/dal/enum/ColumnType.js +0 -48
- package/dal/enum/CompressionType.d.ts +0 -5
- package/dal/enum/CompressionType.js +0 -7
- package/dal/enum/IndexStoreType.d.ts +0 -4
- package/dal/enum/IndexStoreType.js +0 -6
- package/dal/enum/IndexType.d.ts +0 -7
- package/dal/enum/IndexType.js +0 -9
- package/dal/enum/InsertMethod.d.ts +0 -5
- package/dal/enum/InsertMethod.js +0 -7
- package/dal/enum/RowFormat.d.ts +0 -8
- package/dal/enum/RowFormat.js +0 -10
- package/dal/enum/SqlType.d.ts +0 -7
- package/dal/enum/SqlType.js +0 -9
- package/dal/enum/Templates.d.ts +0 -5
- package/dal/enum/Templates.js +0 -7
- package/dal/enum/index.d.ts +0 -9
- package/dal/enum/index.js +0 -10
- package/dal/index.d.ts +0 -4
- package/dal/index.js +0 -5
- package/dal/type/BaseDao.d.ts +0 -9
- package/dal/type/BaseDao.js +0 -2
- package/dal/type/CodeGenerator.d.ts +0 -6
- package/dal/type/CodeGenerator.js +0 -2
- package/dal/type/ColumnTsType.d.ts +0 -41
- package/dal/type/ColumnTsType.js +0 -2
- package/dal/type/DateSource.d.ts +0 -13
- package/dal/type/DateSource.js +0 -2
- package/dal/type/Spatial.d.ts +0 -11
- package/dal/type/Spatial.js +0 -2
- package/dal/type/SqlMap.d.ts +0 -18
- package/dal/type/SqlMap.js +0 -2
- package/dal/type/index.d.ts +0 -6
- package/dal/type/index.js +0 -7
- package/dynamic-inject.d.ts +0 -13
- package/dynamic-inject.js +0 -2
- package/index.d.ts +0 -12
- package/index.js +0 -13
- package/lifecycle/EggObjectLifecycle.d.ts +0 -35
- package/lifecycle/EggObjectLifecycle.js +0 -2
- package/lifecycle/IdenticalObject.d.ts +0 -4
- package/lifecycle/IdenticalObject.js +0 -2
- package/lifecycle/LifecycleHook.d.ts +0 -13
- package/lifecycle/LifecycleHook.js +0 -2
- package/lifecycle/index.d.ts +0 -3
- package/lifecycle/index.js +0 -4
- package/metadata/enum/ProtoDescriptorType.d.ts +0 -3
- package/metadata/enum/ProtoDescriptorType.js +0 -5
- package/metadata/enum/index.d.ts +0 -1
- package/metadata/enum/index.js +0 -2
- package/metadata/errors.d.ts +0 -5
- package/metadata/errors.js +0 -7
- package/metadata/index.d.ts +0 -3
- package/metadata/index.js +0 -4
- package/metadata/model/EggPrototype.d.ts +0 -136
- package/metadata/model/EggPrototype.js +0 -2
- package/metadata/model/LoadUnit.d.ts +0 -29
- package/metadata/model/LoadUnit.js +0 -7
- package/metadata/model/Loader.d.ts +0 -7
- package/metadata/model/Loader.js +0 -2
- package/metadata/model/ProtoDescriptor.d.ts +0 -22
- package/metadata/model/ProtoDescriptor.js +0 -2
- package/metadata/model/index.d.ts +0 -4
- package/metadata/model/index.js +0 -5
- package/orm.d.ts +0 -30
- package/orm.js +0 -7
- package/runtime/Factory.d.ts +0 -6
- package/runtime/Factory.js +0 -2
- package/runtime/index.d.ts +0 -2
- package/runtime/index.js +0 -3
- package/runtime/model/EggContainer.d.ts +0 -11
- package/runtime/model/EggContainer.js +0 -2
- package/runtime/model/EggContext.d.ts +0 -7
- package/runtime/model/EggContext.js +0 -2
- package/runtime/model/EggObject.d.ts +0 -24
- package/runtime/model/EggObject.js +0 -9
- package/runtime/model/LoadUnitInstance.d.ts +0 -9
- package/runtime/model/LoadUnitInstance.js +0 -2
- package/runtime/model/index.d.ts +0 -4
- package/runtime/model/index.js +0 -5
- package/schedule.d.ts +0 -30
- package/schedule.js +0 -10
- package/transaction.d.ts +0 -23
- package/transaction.js +0 -10
|
@@ -0,0 +1,27 @@
|
|
|
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;
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { TableParams };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,19 @@
|
|
|
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;
|
|
17
|
+
}
|
|
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 };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/dal/enum/ColumnFormat.ts
|
|
2
|
+
let ColumnFormat = /* @__PURE__ */ function(ColumnFormat$1) {
|
|
3
|
+
ColumnFormat$1["FIXED"] = "FIXED";
|
|
4
|
+
ColumnFormat$1["DYNAMIC"] = "DYNAMIC";
|
|
5
|
+
ColumnFormat$1["DEFAULT"] = "DEFAULT";
|
|
6
|
+
return ColumnFormat$1;
|
|
7
|
+
}({});
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ColumnFormat };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
//#region src/dal/enum/ColumnType.d.ts
|
|
2
|
+
declare enum ColumnType {
|
|
3
|
+
BIT = "BIT",
|
|
4
|
+
TINYINT = "TINYINT",
|
|
5
|
+
BOOL = "BOOL",
|
|
6
|
+
SMALLINT = "SMALLINT",
|
|
7
|
+
MEDIUMINT = "MEDIUMINT",
|
|
8
|
+
INT = "INT",
|
|
9
|
+
BIGINT = "BIGINT",
|
|
10
|
+
DECIMAL = "DECIMAL",
|
|
11
|
+
FLOAT = "FLOAT",
|
|
12
|
+
DOUBLE = "DOUBLE",
|
|
13
|
+
DATE = "DATE",
|
|
14
|
+
DATETIME = "DATETIME",
|
|
15
|
+
TIMESTAMP = "TIMESTAMP",
|
|
16
|
+
TIME = "TIME",
|
|
17
|
+
YEAR = "YEAR",
|
|
18
|
+
CHAR = "CHAR",
|
|
19
|
+
VARCHAR = "VARCHAR",
|
|
20
|
+
BINARY = "BINARY",
|
|
21
|
+
VARBINARY = "VARBINARY",
|
|
22
|
+
TINYBLOB = "TINYBLOB",
|
|
23
|
+
TINYTEXT = "TINYTEXT",
|
|
24
|
+
BLOB = "BLOB",
|
|
25
|
+
TEXT = "TEXT",
|
|
26
|
+
MEDIUMBLOB = "MEDIUMBLOB",
|
|
27
|
+
MEDIUMTEXT = "MEDIUMTEXT",
|
|
28
|
+
LONGBLOB = "LONGBLOB",
|
|
29
|
+
LONGTEXT = "LONGTEXT",
|
|
30
|
+
ENUM = "ENUM",
|
|
31
|
+
SET = "SET",
|
|
32
|
+
JSON = "JSON",
|
|
33
|
+
GEOMETRY = "GEOMETRY",
|
|
34
|
+
POINT = "POINT",
|
|
35
|
+
LINESTRING = "LINESTRING",
|
|
36
|
+
POLYGON = "POLYGON",
|
|
37
|
+
MULTIPOINT = "MULTIPOINT",
|
|
38
|
+
MULTILINESTRING = "MULTILINESTRING",
|
|
39
|
+
MULTIPOLYGON = "MULTIPOLYGON",
|
|
40
|
+
GEOMETRYCOLLECTION = "GEOMETRYCOLLECTION",
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { ColumnType };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//#region src/dal/enum/ColumnType.ts
|
|
2
|
+
let ColumnType = /* @__PURE__ */ function(ColumnType$1) {
|
|
3
|
+
ColumnType$1["BIT"] = "BIT";
|
|
4
|
+
ColumnType$1["TINYINT"] = "TINYINT";
|
|
5
|
+
ColumnType$1["BOOL"] = "BOOL";
|
|
6
|
+
ColumnType$1["SMALLINT"] = "SMALLINT";
|
|
7
|
+
ColumnType$1["MEDIUMINT"] = "MEDIUMINT";
|
|
8
|
+
ColumnType$1["INT"] = "INT";
|
|
9
|
+
ColumnType$1["BIGINT"] = "BIGINT";
|
|
10
|
+
ColumnType$1["DECIMAL"] = "DECIMAL";
|
|
11
|
+
ColumnType$1["FLOAT"] = "FLOAT";
|
|
12
|
+
ColumnType$1["DOUBLE"] = "DOUBLE";
|
|
13
|
+
ColumnType$1["DATE"] = "DATE";
|
|
14
|
+
ColumnType$1["DATETIME"] = "DATETIME";
|
|
15
|
+
ColumnType$1["TIMESTAMP"] = "TIMESTAMP";
|
|
16
|
+
ColumnType$1["TIME"] = "TIME";
|
|
17
|
+
ColumnType$1["YEAR"] = "YEAR";
|
|
18
|
+
ColumnType$1["CHAR"] = "CHAR";
|
|
19
|
+
ColumnType$1["VARCHAR"] = "VARCHAR";
|
|
20
|
+
ColumnType$1["BINARY"] = "BINARY";
|
|
21
|
+
ColumnType$1["VARBINARY"] = "VARBINARY";
|
|
22
|
+
ColumnType$1["TINYBLOB"] = "TINYBLOB";
|
|
23
|
+
ColumnType$1["TINYTEXT"] = "TINYTEXT";
|
|
24
|
+
ColumnType$1["BLOB"] = "BLOB";
|
|
25
|
+
ColumnType$1["TEXT"] = "TEXT";
|
|
26
|
+
ColumnType$1["MEDIUMBLOB"] = "MEDIUMBLOB";
|
|
27
|
+
ColumnType$1["MEDIUMTEXT"] = "MEDIUMTEXT";
|
|
28
|
+
ColumnType$1["LONGBLOB"] = "LONGBLOB";
|
|
29
|
+
ColumnType$1["LONGTEXT"] = "LONGTEXT";
|
|
30
|
+
ColumnType$1["ENUM"] = "ENUM";
|
|
31
|
+
ColumnType$1["SET"] = "SET";
|
|
32
|
+
ColumnType$1["JSON"] = "JSON";
|
|
33
|
+
ColumnType$1["GEOMETRY"] = "GEOMETRY";
|
|
34
|
+
ColumnType$1["POINT"] = "POINT";
|
|
35
|
+
ColumnType$1["LINESTRING"] = "LINESTRING";
|
|
36
|
+
ColumnType$1["POLYGON"] = "POLYGON";
|
|
37
|
+
ColumnType$1["MULTIPOINT"] = "MULTIPOINT";
|
|
38
|
+
ColumnType$1["MULTILINESTRING"] = "MULTILINESTRING";
|
|
39
|
+
ColumnType$1["MULTIPOLYGON"] = "MULTIPOLYGON";
|
|
40
|
+
ColumnType$1["GEOMETRYCOLLECTION"] = "GEOMETRYCOLLECTION";
|
|
41
|
+
return ColumnType$1;
|
|
42
|
+
}({});
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
export { ColumnType };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/dal/enum/CompressionType.ts
|
|
2
|
+
let CompressionType = /* @__PURE__ */ function(CompressionType$1) {
|
|
3
|
+
CompressionType$1["ZLIB"] = "ZLIB";
|
|
4
|
+
CompressionType$1["LZ4"] = "LZ4";
|
|
5
|
+
CompressionType$1["NONE"] = "NONE";
|
|
6
|
+
return CompressionType$1;
|
|
7
|
+
}({});
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { CompressionType };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/dal/enum/IndexStoreType.ts
|
|
2
|
+
let IndexStoreType = /* @__PURE__ */ function(IndexStoreType$1) {
|
|
3
|
+
IndexStoreType$1["BTREE"] = "BTREE";
|
|
4
|
+
IndexStoreType$1["HASH"] = "HASH";
|
|
5
|
+
return IndexStoreType$1;
|
|
6
|
+
}({});
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { IndexStoreType };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/dal/enum/IndexType.ts
|
|
2
|
+
let IndexType = /* @__PURE__ */ function(IndexType$1) {
|
|
3
|
+
IndexType$1["PRIMARY"] = "PRIMARY";
|
|
4
|
+
IndexType$1["UNIQUE"] = "UNIQUE";
|
|
5
|
+
IndexType$1["INDEX"] = "INDEX";
|
|
6
|
+
IndexType$1["FULLTEXT"] = "FULLTEXT";
|
|
7
|
+
IndexType$1["SPATIAL"] = "SPATIAL";
|
|
8
|
+
return IndexType$1;
|
|
9
|
+
}({});
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { IndexType };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/dal/enum/InsertMethod.ts
|
|
2
|
+
let InsertMethod = /* @__PURE__ */ function(InsertMethod$1) {
|
|
3
|
+
InsertMethod$1["NO"] = "NO";
|
|
4
|
+
InsertMethod$1["FIRST"] = "FIRST";
|
|
5
|
+
InsertMethod$1["LAST"] = "LAST";
|
|
6
|
+
return InsertMethod$1;
|
|
7
|
+
}({});
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { InsertMethod };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/dal/enum/RowFormat.ts
|
|
2
|
+
let RowFormat = /* @__PURE__ */ function(RowFormat$1) {
|
|
3
|
+
RowFormat$1["DEFAULT"] = "DEFAULT";
|
|
4
|
+
RowFormat$1["DYNAMIC"] = "DYNAMIC";
|
|
5
|
+
RowFormat$1["FIXED"] = "FIXED";
|
|
6
|
+
RowFormat$1["COMPRESSED"] = "COMPRESSED";
|
|
7
|
+
RowFormat$1["REDUNDANT"] = "REDUNDANT";
|
|
8
|
+
RowFormat$1["COMPACT"] = "COMPACT";
|
|
9
|
+
return RowFormat$1;
|
|
10
|
+
}({});
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { RowFormat };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/dal/enum/SqlType.ts
|
|
2
|
+
let SqlType = /* @__PURE__ */ function(SqlType$1) {
|
|
3
|
+
SqlType$1["BLOCK"] = "BLOCK";
|
|
4
|
+
SqlType$1["INSERT"] = "INSERT";
|
|
5
|
+
SqlType$1["SELECT"] = "SELECT";
|
|
6
|
+
SqlType$1["UPDATE"] = "UPDATE";
|
|
7
|
+
SqlType$1["DELETE"] = "DELETE";
|
|
8
|
+
return SqlType$1;
|
|
9
|
+
}({});
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { SqlType };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/dal/enum/Templates.ts
|
|
2
|
+
let Templates = /* @__PURE__ */ function(Templates$1) {
|
|
3
|
+
Templates$1["BASE_DAO"] = "base_dao";
|
|
4
|
+
Templates$1["DAO"] = "dao";
|
|
5
|
+
Templates$1["EXTENSION"] = "extension";
|
|
6
|
+
return Templates$1;
|
|
7
|
+
}({});
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Templates };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ColumnFormat } from "./ColumnFormat.js";
|
|
2
|
+
import { ColumnType } from "./ColumnType.js";
|
|
3
|
+
import { CompressionType } from "./CompressionType.js";
|
|
4
|
+
import { IndexStoreType } from "./IndexStoreType.js";
|
|
5
|
+
import { IndexType } from "./IndexType.js";
|
|
6
|
+
import { InsertMethod } from "./InsertMethod.js";
|
|
7
|
+
import { RowFormat } from "./RowFormat.js";
|
|
8
|
+
import { SqlType } from "./SqlType.js";
|
|
9
|
+
import { Templates } from "./Templates.js";
|
|
10
|
+
export { ColumnFormat, ColumnType, CompressionType, IndexStoreType, IndexType, InsertMethod, RowFormat, SqlType, Templates };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ColumnFormat } from "./ColumnFormat.js";
|
|
2
|
+
import { ColumnType } from "./ColumnType.js";
|
|
3
|
+
import { CompressionType } from "./CompressionType.js";
|
|
4
|
+
import { IndexStoreType } from "./IndexStoreType.js";
|
|
5
|
+
import { IndexType } from "./IndexType.js";
|
|
6
|
+
import { InsertMethod } from "./InsertMethod.js";
|
|
7
|
+
import { RowFormat } from "./RowFormat.js";
|
|
8
|
+
import { SqlType } from "./SqlType.js";
|
|
9
|
+
import { Templates } from "./Templates.js";
|
|
10
|
+
|
|
11
|
+
export { ColumnFormat, ColumnType, CompressionType, IndexStoreType, IndexType, InsertMethod, RowFormat, SqlType, Templates };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS } from "./Qualifier.js";
|
|
2
|
+
import { ColumnFormat } from "./enum/ColumnFormat.js";
|
|
3
|
+
import { ColumnType } from "./enum/ColumnType.js";
|
|
4
|
+
import { CompressionType } from "./enum/CompressionType.js";
|
|
5
|
+
import { IndexStoreType } from "./enum/IndexStoreType.js";
|
|
6
|
+
import { IndexType } from "./enum/IndexType.js";
|
|
7
|
+
import { InsertMethod } from "./enum/InsertMethod.js";
|
|
8
|
+
import { RowFormat } from "./enum/RowFormat.js";
|
|
9
|
+
import { SqlType } from "./enum/SqlType.js";
|
|
10
|
+
import { Templates } from "./enum/Templates.js";
|
|
11
|
+
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 "./decorator/Column.js";
|
|
12
|
+
import { DataSourceInjectName, DataSourceQualifierAttribute } from "./decorator/DataSourceQualifier.js";
|
|
13
|
+
import { TableParams } from "./decorator/Table.js";
|
|
14
|
+
import { IndexParams } from "./decorator/index.js";
|
|
15
|
+
import { BaseSqlMap, BlockSqlMap, FullSqlMap, GenerateSqlMap, SqlMap } from "./type/SqlMap.js";
|
|
16
|
+
import { BaseDaoType } from "./type/BaseDao.js";
|
|
17
|
+
import { CodeGeneratorOptions } from "./type/CodeGenerator.js";
|
|
18
|
+
import { Geometry, GeometryCollection, Line, MultiLine, MultiPoint, MultiPolygon, Point, Polygon } from "./type/Spatial.js";
|
|
19
|
+
import { ColumnTsType } from "./type/ColumnTsType.js";
|
|
20
|
+
import { DataSource, PaginateData } from "./type/DateSource.js";
|
|
21
|
+
export { BaseDaoType, BaseSpatialParams, BaseSqlMap, BigIntParams, BinaryParams, BitParams, BlobParams, BlockSqlMap, BoolParams, CharParams, CodeGeneratorOptions, ColumnFormat, ColumnParams, ColumnTsType, ColumnType, ColumnTypeParams, CompressionType, DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS, DataSource, DataSourceInjectName, DataSourceQualifierAttribute, DateParams, DateTimeParams, DecimalParams, DoubleParams, EnumParams, FloatParams, FullSqlMap, GenerateSqlMap, Geometry, GeometryCollection, GeometryCollectionParams, GeometryParams, IColumnTypeParams, IndexParams, IndexStoreType, IndexType, InsertMethod, IntParams, JsonParams, Line, LinestringParams, LongBlobParams, LongTextParams, MediumBlobParams, MediumIntParams, MediumTextParams, MultiLine, MultiLinestringParams, MultiPoint, MultiPointParams, MultiPolygon, MultiPolygonParams, PaginateData, Point, PointParams, Polygon, PolygonParams, RowFormat, SetParams, SmallIntParams, SqlMap, SqlType, TableParams, Templates, TextParams, TimeParams, TimestampParams, TinyBlobParams, TinyIntParams, TinyTextParams, VarBinaryParams, VarCharParams, YearParams };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ColumnFormat } from "./enum/ColumnFormat.js";
|
|
2
|
+
import { ColumnType } from "./enum/ColumnType.js";
|
|
3
|
+
import { CompressionType } from "./enum/CompressionType.js";
|
|
4
|
+
import { IndexStoreType } from "./enum/IndexStoreType.js";
|
|
5
|
+
import { IndexType } from "./enum/IndexType.js";
|
|
6
|
+
import { InsertMethod } from "./enum/InsertMethod.js";
|
|
7
|
+
import { RowFormat } from "./enum/RowFormat.js";
|
|
8
|
+
import { SqlType } from "./enum/SqlType.js";
|
|
9
|
+
import { Templates } from "./enum/Templates.js";
|
|
10
|
+
import { DataSourceInjectName, DataSourceQualifierAttribute } from "./decorator/DataSourceQualifier.js";
|
|
11
|
+
import "./decorator/index.js";
|
|
12
|
+
import { DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS } from "./Qualifier.js";
|
|
13
|
+
|
|
14
|
+
export { ColumnFormat, ColumnType, CompressionType, DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS, DataSourceInjectName, DataSourceQualifierAttribute, IndexStoreType, IndexType, InsertMethod, RowFormat, SqlType, Templates };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EggProtoImplClass } from "../../core-decorator/model/EggPrototypeInfo.js";
|
|
2
|
+
import { SqlMap } from "./SqlMap.js";
|
|
3
|
+
|
|
4
|
+
//#region src/dal/type/BaseDao.d.ts
|
|
5
|
+
interface BaseDaoType {
|
|
6
|
+
new (...args: any[]): object;
|
|
7
|
+
clazzModel: EggProtoImplClass<object>;
|
|
8
|
+
clazzExtension: Record<string, SqlMap>;
|
|
9
|
+
tableStature: object;
|
|
10
|
+
tableSql: string;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { BaseDaoType };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Geometry, GeometryCollection, Line, MultiLine, MultiPoint, MultiPolygon, Point, Polygon } from "./Spatial.js";
|
|
2
|
+
|
|
3
|
+
//#region src/dal/type/ColumnTsType.d.ts
|
|
4
|
+
interface ColumnTsType {
|
|
5
|
+
BIT: Buffer;
|
|
6
|
+
TINYINT: number;
|
|
7
|
+
BOOL: 0 | 1;
|
|
8
|
+
SMALLINT: number;
|
|
9
|
+
MEDIUMINT: number;
|
|
10
|
+
INT: number;
|
|
11
|
+
BIGINT: string;
|
|
12
|
+
DECIMAL: string;
|
|
13
|
+
FLOAT: number;
|
|
14
|
+
DOUBLE: number;
|
|
15
|
+
DATE: Date;
|
|
16
|
+
DATETIME: Date;
|
|
17
|
+
TIMESTAMP: Date;
|
|
18
|
+
TIME: string;
|
|
19
|
+
YEAR: number;
|
|
20
|
+
CHAR: string;
|
|
21
|
+
VARCHAR: string;
|
|
22
|
+
BINARY: Buffer;
|
|
23
|
+
VARBINARY: Buffer;
|
|
24
|
+
TINYBLOB: Buffer;
|
|
25
|
+
TINYTEXT: string;
|
|
26
|
+
BLOB: Buffer;
|
|
27
|
+
TEXT: string;
|
|
28
|
+
MEDIUMBLOB: Buffer;
|
|
29
|
+
MEDIUMTEXT: string;
|
|
30
|
+
LONGBLOB: Buffer;
|
|
31
|
+
LONGTEXT: string;
|
|
32
|
+
ENUM: string;
|
|
33
|
+
SET: string;
|
|
34
|
+
JSON: object;
|
|
35
|
+
GEOMETRY: Geometry;
|
|
36
|
+
POINT: Point;
|
|
37
|
+
LINESTRING: Line;
|
|
38
|
+
POLYGON: Polygon;
|
|
39
|
+
MULTIPOINT: MultiPoint;
|
|
40
|
+
MULTILINESTRING: MultiLine;
|
|
41
|
+
MULTIPOLYGON: MultiPolygon;
|
|
42
|
+
GEOMETRYCOLLECTION: GeometryCollection;
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { ColumnTsType };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/dal/type/DateSource.d.ts
|
|
2
|
+
interface PaginateData<T> {
|
|
3
|
+
total: number;
|
|
4
|
+
pageNum: number;
|
|
5
|
+
rows: Array<T>;
|
|
6
|
+
}
|
|
7
|
+
interface DataSource<T> {
|
|
8
|
+
execute(sqlName: string, data?: any): Promise<Array<T>>;
|
|
9
|
+
executeScalar(sqlName: string, data?: any): Promise<T | null>;
|
|
10
|
+
executeRaw(sqlName: string, data?: any): Promise<Array<any>>;
|
|
11
|
+
executeRawScalar(sqlName: string, data?: any): Promise<any | null>;
|
|
12
|
+
paginate(sqlName: string, data: any, currentPage: number, perPageCount: number): Promise<PaginateData<T>>;
|
|
13
|
+
count(sqlName: string, data?: any): Promise<number>;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { DataSource, PaginateData };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/dal/type/Spatial.d.ts
|
|
2
|
+
interface Point {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
type Line = Array<Point>;
|
|
7
|
+
type Polygon = Array<Line>;
|
|
8
|
+
type Geometry = Point | Line | Polygon;
|
|
9
|
+
type MultiPoint = Array<Point>;
|
|
10
|
+
type MultiLine = Array<Line>;
|
|
11
|
+
type MultiPolygon = Array<Polygon>;
|
|
12
|
+
type GeometryCollection = Array<Point | Line | Polygon>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Geometry, GeometryCollection, Line, MultiLine, MultiPoint, MultiPolygon, Point, Polygon };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SqlType } from "../enum/SqlType.js";
|
|
2
|
+
|
|
3
|
+
//#region src/dal/type/SqlMap.d.ts
|
|
4
|
+
interface BaseSqlMap {
|
|
5
|
+
type?: SqlType;
|
|
6
|
+
}
|
|
7
|
+
interface FullSqlMap extends BaseSqlMap {
|
|
8
|
+
type: SqlType.DELETE | SqlType.INSERT | SqlType.UPDATE | SqlType.SELECT;
|
|
9
|
+
sql: string;
|
|
10
|
+
}
|
|
11
|
+
interface BlockSqlMap extends BaseSqlMap {
|
|
12
|
+
type: SqlType.BLOCK;
|
|
13
|
+
content: string;
|
|
14
|
+
}
|
|
15
|
+
type SqlMap = FullSqlMap | BlockSqlMap;
|
|
16
|
+
interface GenerateSqlMap {
|
|
17
|
+
name: string;
|
|
18
|
+
type: SqlType.DELETE | SqlType.UPDATE | SqlType.INSERT | SqlType.SELECT;
|
|
19
|
+
sql: string;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { BaseSqlMap, BlockSqlMap, FullSqlMap, GenerateSqlMap, SqlMap };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseSqlMap, BlockSqlMap, FullSqlMap, GenerateSqlMap, SqlMap } from "./SqlMap.js";
|
|
2
|
+
import { BaseDaoType } from "./BaseDao.js";
|
|
3
|
+
import { CodeGeneratorOptions } from "./CodeGenerator.js";
|
|
4
|
+
import { Geometry, GeometryCollection, Line, MultiLine, MultiPoint, MultiPolygon, Point, Polygon } from "./Spatial.js";
|
|
5
|
+
import { ColumnTsType } from "./ColumnTsType.js";
|
|
6
|
+
import { DataSource, PaginateData } from "./DateSource.js";
|
|
7
|
+
export { BaseDaoType, BaseSqlMap, BlockSqlMap, CodeGeneratorOptions, ColumnTsType, DataSource, FullSqlMap, GenerateSqlMap, Geometry, GeometryCollection, Line, MultiLine, MultiPoint, MultiPolygon, PaginateData, Point, Polygon, SqlMap };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { QualifierValue } from "./core-decorator/model/QualifierInfo.js";
|
|
2
|
+
import { EggProtoImplClass } from "./core-decorator/model/EggPrototypeInfo.js";
|
|
3
|
+
|
|
4
|
+
//#region src/dynamic-inject.d.ts
|
|
5
|
+
type EggAbstractClazz<T extends object = object> = Function & {
|
|
6
|
+
prototype: T;
|
|
7
|
+
};
|
|
8
|
+
type ImplTypeEnum = {
|
|
9
|
+
[id: string]: QualifierValue;
|
|
10
|
+
};
|
|
11
|
+
type ImplDecorator<T extends object, Enum extends ImplTypeEnum> = (type: Enum[keyof Enum]) => ((clazz: EggProtoImplClass<T>) => void);
|
|
12
|
+
interface EggObjectFactory {
|
|
13
|
+
getEggObject<T extends object>(abstractClazz: EggAbstractClazz<T>, qualifierValue: QualifierValue): Promise<T>;
|
|
14
|
+
getEggObjects<T extends object>(abstractClazz: EggAbstractClazz<T>): Promise<AsyncIterable<T>>;
|
|
15
|
+
}
|
|
16
|
+
declare const QUALIFIER_IMPL_MAP: unique symbol;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { EggAbstractClazz, EggObjectFactory, ImplDecorator, ImplTypeEnum, QUALIFIER_IMPL_MAP };
|