mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-06 16:48:24 +08:00
update readme
This commit is contained in:
parent
02aaaee3a0
commit
a439e0a768
@ -295,6 +295,8 @@ build the project by IDE, or execute maven build command: `mvn clean package`
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## More Samples
|
## More Samples
|
||||||
|
|
||||||
- 1、[Mybatis-Flex Only (Native)](./mybatis-flex-test/mybatis-flex-native-test)
|
- 1、[Mybatis-Flex Only (Native)](./mybatis-flex-test/mybatis-flex-native-test)
|
||||||
|
|||||||
15
readme_zh.md
15
readme_zh.md
@ -295,6 +295,21 @@ QueryWrapper query=new QueryWrapper();
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
## Db 工具类
|
||||||
|
|
||||||
|
Db 是一个极度轻量的数据库操作工具类,以下是一些示例:
|
||||||
|
|
||||||
|
```java
|
||||||
|
String sql = "insert into tb_account(id,name) value (?, ?)";
|
||||||
|
Db.insertBySql(sql,1,"michael");
|
||||||
|
|
||||||
|
Row account = new Row();
|
||||||
|
account.set("id",100);
|
||||||
|
account.set("name","Michael");
|
||||||
|
Db.insertRow("tb_account",account);
|
||||||
|
```
|
||||||
|
更多 Db 的方法请查看 [Db.java](./mybatis-flex-core/src/main/java/com/mybatisflex/core/row/Db.java) 。
|
||||||
|
|
||||||
## 更多示例
|
## 更多示例
|
||||||
|
|
||||||
- 1、[Mybatis-Flex 原生(无其他依赖)](./mybatis-flex-test/mybatis-flex-native-test)
|
- 1、[Mybatis-Flex 原生(无其他依赖)](./mybatis-flex-test/mybatis-flex-native-test)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user