Skip to content

Commit e614186

Browse files
committed
Update the basic usage documentation
1 parent 91ec1fb commit e614186

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

docs/usage/crud.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@
22

33
SQLAlchemy CRUD Plus 提供完整的 CRUD(创建、读取、更新、删除)操作。
44

5-
!!! note "主键参数命名"
6-
7-
由于在 python 内部 `id` 为关键字,因此,我们设定默认主键入参为 `pk`。这仅用于函数入参,并不要求模型主键必须定义为 `pk`
8-
9-
!!! tip "自动主键"
10-
11-
我们在 SQLAlchemy CRUD Plus 内部通过 [inspect()](https://docs.sqlalchemy.org/en/20/core/inspection.html) 自动搜索表主键,
12-
而非强制绑定主键列必须命名为 `id`
13-
145
## 创建记录
156

167
### 单条记录

0 commit comments

Comments
 (0)