feat(database): add database layer architecture (#410)

- Add @esengine/database-drivers for MongoDB/Redis connection management
- Add @esengine/database for Repository pattern with CRUD, pagination, soft delete
- Refactor @esengine/transaction MongoStorage to use shared connection
- Add comprehensive documentation in Chinese and English
This commit is contained in:
YHH
2025-12-31 16:26:53 +08:00
committed by GitHub
parent 87f71e2251
commit 71022abc99
41 changed files with 5226 additions and 186 deletions

View File

@@ -0,0 +1,23 @@
{
"id": "database-drivers",
"name": "@esengine/database-drivers",
"globalKey": "database-drivers",
"displayName": "Database Drivers",
"description": "数据库连接驱动,提供 MongoDB、Redis 等数据库的连接管理 | Database connection drivers with connection pooling for MongoDB, Redis, etc.",
"version": "1.0.0",
"category": "Infrastructure",
"icon": "Database",
"tags": ["database", "mongodb", "redis", "connection"],
"isCore": false,
"defaultEnabled": true,
"isEngineModule": false,
"canContainContent": false,
"platforms": ["server"],
"dependencies": [],
"exports": {
"components": [],
"systems": []
},
"requiresWasm": false,
"outputPath": "dist/index.js"
}