Skip to content

Commit c04ba5a

Browse files
authored
Update README.md (#33)
1 parent 695f3c0 commit c04ba5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gorm-plus是基于Gorm的增强版,类似Mybatis-plus语法。
1212
- [x] 支持主键自动生成
1313
- [x] 内置分页插件
1414

15-
## 事务
15+
## 事务(未发版)
1616
- 在需要事务的场景,可以使用gplus.Begin()开启事务,获取*gorm.DB
1717
- 所有的dao方法,均支持传入*gorm.DB,后续的操作均以传入的为准
1818

@@ -420,7 +420,7 @@ for _, student := range students {
420420
}
421421
```
422422

423-
#### 事务
423+
#### 事务(未发版)
424424

425425
```Go
426426
// 开启事务
@@ -446,4 +446,4 @@ resultStudent, db := gplus.SelectById[Student](student.ID, tx)
446446

447447
// 提交事务,否则数据库数据不更改
448448
tx.Commit()
449-
```
449+
```

0 commit comments

Comments
 (0)