From a0ba9c372b12fe29c0496d833f52e08e036eb03f Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Sun, 25 Jun 2023 09:33:53 +0800 Subject: [PATCH] docs: Official maintained ORM model is egg-orm (#5227) --- site/docs/tutorials/index.md | 6 +++++- site/docs/tutorials/index.zh-CN.md | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/site/docs/tutorials/index.md b/site/docs/tutorials/index.md index 257b77627..a10794d04 100644 --- a/site/docs/tutorials/index.md +++ b/site/docs/tutorials/index.md @@ -40,11 +40,13 @@ Template engines available as shown below. For more template engines [searching] ## Databases -Official [ORM model WIP](https://github.com/eggjs/egg/issues/388),plugins now available: +Official maintained ORM model is [egg-orm] base on [Leoric], and the following database plugins are currently available: +- [egg-orm] - [egg-sequelize] - [egg-mongoose] - [egg-mysql],refer to [MySQL tutorials](./tutorials/mysql.md) +- [egg-graphql] [egg-sequelize]: https://github.com/eggjs/egg-sequelize [egg-mongoose]: https://github.com/eggjs/egg-mongoose @@ -55,3 +57,5 @@ Official [ORM model WIP](https://github.com/eggjs/egg/issues/388),plugins now [egg-view-handlebars]: https://github.com/eggjs/egg-view-handlebars [egg-view-pug]: https://github.com/chrisyip/egg-view-pug [egg-view-xtpl]: https://github.com/eggjs/egg-view-xtpl +[egg-orm]: https://github.com/eggjs/egg-orm/blob/master/Readme.md +[Leoric]: https://leoric.js.org diff --git a/site/docs/tutorials/index.zh-CN.md b/site/docs/tutorials/index.zh-CN.md index 61012f409..1f7a9e76a 100644 --- a/site/docs/tutorials/index.zh-CN.md +++ b/site/docs/tutorials/index.zh-CN.md @@ -42,8 +42,9 @@ $ npm init egg --type=simple ## 数据库 -官方 [ORM 模型还在设计中](https://github.com/eggjs/egg/issues/388),但现在可以使用 +官方维护的 ORM 模型是基于 [Leoric] 实现的 [egg-orm],目前可用的数据库插件: +- [egg-orm] - [egg-sequelize] - [egg-mongoose] - [egg-mysql],可查看 [MySQL 教程](./tutorials/mysql.md) @@ -61,3 +62,5 @@ $ npm init egg --type=simple [egg-view-react]: https://github.com/eggjs/egg-view-react [egg-view-vue]: https://github.com/eggjs/egg-view-vue [egg-graphql]: https://github.com/eggjs/egg-graphql +[egg-orm]: https://github.com/eggjs/egg-orm/blob/master/Readme.zh-CN.md +[Leoric]: https://leoric.js.org/zh