@eggjs/dal-decorator 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/decorator/Column.d.ts +6 -2
- package/dist/decorator/Column.js +16 -13
- package/dist/decorator/Dao.d.ts +6 -2
- package/dist/decorator/Dao.js +19 -15
- package/dist/decorator/DataSourceQualifier.d.ts +4 -1
- package/dist/decorator/DataSourceQualifier.js +11 -7
- package/dist/decorator/Table.d.ts +6 -2
- package/dist/decorator/Table.js +20 -18
- package/dist/decorator/TableIndex.d.ts +6 -2
- package/dist/decorator/TableIndex.js +11 -6
- package/dist/decorator/index.d.ts +5 -5
- package/dist/decorator/index.js +7 -6
- package/dist/index.d.ts +20 -5
- package/dist/index.js +21 -6
- package/dist/model/ColumnModel.d.ts +23 -19
- package/dist/model/ColumnModel.js +59 -57
- package/dist/model/IndexModel.d.ts +22 -19
- package/dist/model/IndexModel.js +51 -52
- package/dist/model/TableModel.d.ts +34 -30
- package/dist/model/TableModel.js +114 -111
- package/dist/model/index.d.ts +3 -3
- package/dist/model/index.js +5 -4
- package/dist/type/MySql.d.ts +2 -1
- package/dist/type/Spatial.d.ts +13 -10
- package/dist/type/Spatial.js +31 -31
- package/dist/type/index.d.ts +2 -2
- package/dist/type/index.js +3 -3
- package/dist/util/ColumnInfoUtil.d.ts +12 -8
- package/dist/util/ColumnInfoUtil.js +21 -19
- package/dist/util/DaoInfoUtil.d.ts +8 -5
- package/dist/util/DaoInfoUtil.js +15 -11
- package/dist/util/IndexInfoUtil.d.ts +8 -4
- package/dist/util/IndexInfoUtil.js +15 -12
- package/dist/util/TableInfoUtil.d.ts +12 -8
- package/dist/util/TableInfoUtil.js +26 -23
- package/dist/util/index.d.ts +4 -4
- package/dist/util/index.js +6 -5
- package/package.json +27 -30
- package/dist/type/MySql.js +0 -2
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
1
|
+
import { MetadataUtil } from "@eggjs/core-decorator";
|
|
2
|
+
import { DAL_IS_TABLE, DAL_TABLE_PARAMS } from "@eggjs/tegg-types";
|
|
3
|
+
|
|
4
|
+
//#region src/util/TableInfoUtil.ts
|
|
5
|
+
const TABLE_CLAZZ_LIST = [];
|
|
6
|
+
var TableInfoUtil = class {
|
|
7
|
+
static setIsTable(clazz) {
|
|
8
|
+
TABLE_CLAZZ_LIST.push(clazz);
|
|
9
|
+
MetadataUtil.defineMetaData(DAL_IS_TABLE, true, clazz);
|
|
10
|
+
}
|
|
11
|
+
static getClazzList() {
|
|
12
|
+
return TABLE_CLAZZ_LIST;
|
|
13
|
+
}
|
|
14
|
+
static getIsTable(clazz) {
|
|
15
|
+
return MetadataUtil.getMetaData(DAL_IS_TABLE, clazz) === true;
|
|
16
|
+
}
|
|
17
|
+
static setTableParams(clazz, params) {
|
|
18
|
+
MetadataUtil.defineMetaData(DAL_TABLE_PARAMS, params, clazz);
|
|
19
|
+
}
|
|
20
|
+
static getTableParams(clazz) {
|
|
21
|
+
return MetadataUtil.getMetaData(DAL_TABLE_PARAMS, clazz);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { TABLE_CLAZZ_LIST, TableInfoUtil };
|
package/dist/util/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ColumnInfoMap, ColumnInfoUtil, ColumnTypeMap } from "./ColumnInfoUtil.js";
|
|
2
|
+
import { DaoInfoUtil } from "./DaoInfoUtil.js";
|
|
3
|
+
import { IndexInfoUtil } from "./IndexInfoUtil.js";
|
|
4
|
+
import { TABLE_CLAZZ_LIST, TableInfoUtil } from "./TableInfoUtil.js";
|
package/dist/util/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ColumnInfoUtil } from "./ColumnInfoUtil.js";
|
|
2
|
+
import { DaoInfoUtil } from "./DaoInfoUtil.js";
|
|
3
|
+
import { IndexInfoUtil } from "./IndexInfoUtil.js";
|
|
4
|
+
import { TABLE_CLAZZ_LIST, TableInfoUtil } from "./TableInfoUtil.js";
|
|
5
|
+
|
|
6
|
+
export { };
|
package/package.json
CHANGED
|
@@ -1,60 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/dal-decorator",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.36",
|
|
4
4
|
"description": "tegg dal decorator",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"
|
|
7
|
-
"typescript",
|
|
6
|
+
"dal",
|
|
8
7
|
"decorator",
|
|
8
|
+
"egg",
|
|
9
9
|
"tegg",
|
|
10
|
-
"
|
|
11
|
-
],
|
|
12
|
-
"type": "module",
|
|
13
|
-
"exports": {
|
|
14
|
-
".": "./dist/index.js",
|
|
15
|
-
"./package.json": "./package.json"
|
|
16
|
-
},
|
|
17
|
-
"files": [
|
|
18
|
-
"dist"
|
|
10
|
+
"typescript"
|
|
19
11
|
],
|
|
20
|
-
"author": "killagu <killa123@126.com>",
|
|
21
|
-
"license": "MIT",
|
|
22
12
|
"homepage": "https://github.com/eggjs/egg/tree/next/tegg/core/dal-decorator",
|
|
23
13
|
"bugs": {
|
|
24
14
|
"url": "https://github.com/eggjs/egg/issues"
|
|
25
15
|
},
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"author": "killagu <killa123@126.com>",
|
|
26
18
|
"repository": {
|
|
27
19
|
"type": "git",
|
|
28
|
-
"url": "git
|
|
20
|
+
"url": "git+https://github.com/eggjs/egg.git",
|
|
29
21
|
"directory": "tegg/core/dal-decorator"
|
|
30
22
|
},
|
|
31
|
-
"
|
|
32
|
-
"
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"type": "module",
|
|
27
|
+
"main": "./dist/index.js",
|
|
28
|
+
"module": "./dist/index.js",
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": "./dist/index.js",
|
|
32
|
+
"./package.json": "./package.json"
|
|
33
|
+
},
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
33
36
|
},
|
|
34
37
|
"dependencies": {
|
|
35
38
|
"@eggjs/rds": "^1.3.0",
|
|
36
39
|
"lodash.snakecase": "^4.1.1",
|
|
37
40
|
"pluralize": "^8.0.0",
|
|
38
|
-
"@eggjs/core-decorator": "4.0.0-beta.
|
|
39
|
-
"@eggjs/tegg-common-util": "4.0.0-beta.
|
|
40
|
-
"@eggjs/tegg-types": "4.0.0-beta.
|
|
41
|
+
"@eggjs/core-decorator": "4.0.0-beta.36",
|
|
42
|
+
"@eggjs/tegg-common-util": "4.0.0-beta.36",
|
|
43
|
+
"@eggjs/tegg-types": "4.0.0-beta.36"
|
|
41
44
|
},
|
|
42
45
|
"devDependencies": {
|
|
43
46
|
"@types/lodash.snakecase": "^4.1.9",
|
|
44
|
-
"@types/node": "^24.
|
|
47
|
+
"@types/node": "^24.10.2",
|
|
45
48
|
"@types/pluralize": "^0.0.33",
|
|
46
|
-
"tsdown": "0.15.11",
|
|
47
49
|
"typescript": "^5.9.3"
|
|
48
50
|
},
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
+
"engines": {
|
|
52
|
+
"node": ">=22.18.0"
|
|
51
53
|
},
|
|
52
|
-
"main": "./dist/index.js",
|
|
53
|
-
"module": "./dist/index.js",
|
|
54
|
-
"types": "./dist/index.d.ts",
|
|
55
54
|
"scripts": {
|
|
56
|
-
"
|
|
57
|
-
"build": "tsdown && npm run clean && tsc -p tsconfig.build.json",
|
|
58
|
-
"typecheck": "tsc --noEmit"
|
|
55
|
+
"typecheck": "tsgo --noEmit"
|
|
59
56
|
}
|
|
60
57
|
}
|
package/dist/type/MySql.js
DELETED