-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Summary by CodeRabbit - **New Features** - Introduced database abstraction layer (DAL) functionality, including decorators for columns, tables, indexes, and data source qualification. - Added extensive enumeration support for database-related properties such as column formats, types, compression types, and more. - Launched new classes for modeling database columns, indexes, and tables. - Provided utilities for managing column, index, and table information in DAL entities. - Enhanced DAL documentation with usage guidance and reference to additional resources. - **Documentation** - Updated documentation to include guidance on using new DAL decorators and runtime features. - **Tests** - Expanded test coverage to include new DAL functionalities and decorators. - **Chores** - Updated `.gitignore` to exclude `.node` files.
- Loading branch information
Showing
110 changed files
with
8,799 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# `@eggjs/dal-decorator` | ||
|
||
## Usage | ||
|
||
Please read [@eggjs/tegg-dal-plugin](../../plugin/dal-plugin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export * from './src/enum/CompressionType'; | ||
export * from './src/enum/InsertMethod'; | ||
export * from './src/enum/RowFormat'; | ||
export * from './src/enum/IndexType'; | ||
export * from './src/enum/ColumnType'; | ||
|
||
export * from './src/decorator/Index'; | ||
export * from './src/decorator/Table'; | ||
export * from './src/decorator/Column'; | ||
export * from './src/decorator/DataSourceQualifier'; | ||
|
||
export * from './src/util/ColumnInfoUtil'; | ||
export * from './src/util/IndexInfoUtil'; | ||
export * from './src/util/TableInfoUtil'; | ||
|
||
export * from './src/model/ColumnModel'; | ||
export * from './src/model/IndexModel'; | ||
export * from './src/model/TableModel'; | ||
|
||
export * from './src/type/DateSource'; | ||
export * from './src/type/Spatial'; | ||
export * from './src/type/SqlMap'; | ||
export * from './src/type/ColumnTsType'; | ||
export * from './src/type/MySql'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"name": "@eggjs/dal-decorator", | ||
"version": "3.32.0", | ||
"description": "tegg dal decorator", | ||
"keywords": [ | ||
"egg", | ||
"typescript", | ||
"decorator", | ||
"tegg", | ||
"dal" | ||
], | ||
"main": "dist/index.js", | ||
"files": [ | ||
"dist/**/*.js", | ||
"dist/**/*.d.ts" | ||
], | ||
"typings": "dist/index.d.ts", | ||
"scripts": { | ||
"test": "cross-env NODE_ENV=test NODE_OPTIONS='--no-deprecation' mocha", | ||
"clean": "tsc -b --clean", | ||
"tsc": "npm run clean && tsc -p ./tsconfig.json", | ||
"tsc:pub": "npm run clean && tsc -p ./tsconfig.pub.json", | ||
"prepublishOnly": "npm run tsc:pub" | ||
}, | ||
"author": "killagu <[email protected]>", | ||
"license": "MIT", | ||
"homepage": "https:/eggjs/tegg", | ||
"bugs": { | ||
"url": "https:/eggjs/tegg/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "[email protected]:eggjs/tegg.git", | ||
"directory": "core/dal-decorator" | ||
}, | ||
"engines": { | ||
"node": ">=14.0.0" | ||
}, | ||
"dependencies": { | ||
"lodash.snakecase": "^4.1.1", | ||
"pluralize": "^7.0.0", | ||
"@eggjs/tegg-common-util": "^3.32.0", | ||
"@eggjs/core-decorator": "^3.32.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"devDependencies": { | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "^20.2.4", | ||
"cross-env": "^7.0.3", | ||
"mocha": "^10.2.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^5.0.4" | ||
} | ||
} |
Oops, something went wrong.