From ab93891b95a23aef92816ea138978ac7b62c21cd Mon Sep 17 00:00:00 2001 From: godotg Date: Wed, 15 May 2024 15:19:50 +0800 Subject: [PATCH] doc[orm]: update doc --- orm/README.md | 3 ++- orm/README_CN.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/orm/README.md b/orm/README.md index 37841900..e717bf90 100644 --- a/orm/README.md +++ b/orm/README.md @@ -5,10 +5,11 @@ English | [简体中文](./README_CN.md) - [orm](https://github.com/zfoo-project/zfoo/blob/main/orm/README.md) Based on MongoDB's orm framework, it provides a mapping between POJO objects and Mongo DB databases - MongoDB is a distributed database that can be used on a single machine or distributed in a single machine +- Orm can directly use the MongoDB official driver to operate the database ### Ⅱ. Use -#### 1. Direct use (low level API), through the low-level API provided by MongoDB to operate the database +#### 1. Direct use (low level api) to directly operate the database through the api provided by the official MongoDB driver - Start by getting the Collection through Orm Manager diff --git a/orm/README_CN.md b/orm/README_CN.md index 560478e1..3feea0d2 100644 --- a/orm/README_CN.md +++ b/orm/README_CN.md @@ -4,10 +4,11 @@ - [orm](https://github.com/zfoo-project/zfoo/blob/main/orm/README.md) 基于MongoDB的orm框架,提供POJO对象和MongoDB数据库之间的映射 - mongodb是分布式数据库,可以单机使用,也可以分布式使用 +- 对MongoDB官方驱动进行了简易封装,可以直接获取最接近官方原生的使用方式 ### Ⅱ. 使用 -#### 1. 直接使用(low level api),通过MongoDB官方提供的底层Api操作数据库 +#### 1. 直接使用(low level api),通过MongoDB官方驱动提供的Api直接操作数据库 - 首先通过OrmManager获取Collection