File tree Expand file tree Collapse file tree
SeaORM/i18n/zh-CN/docusaurus-plugin-content-docs/current Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# 设置迁移
22
33:::tip SeaQL 的 Rust 贴纸包 🦀
4- [ 我们的贴纸] ( https://www.sea-ql.org/sticker-pack/ ) 由优质防水 PVC 制成,具有独特的哑光表面,非常适合粘贴在笔记本电脑或其他小工具的背面!
4+ [ 我们的贴纸] ( https://www.sea-ql.org/sticker-pack/cn/ ) 由优质防水 PVC 制成,具有独特的哑光表面,非常适合粘贴在笔记本电脑或其他小工具的背面!
55:::
66
77SeaORM 提供强大的迁移系统,让你可以使用 SeaQuery 语句或原生 SQL 来创建表、修改 schema 以及填充数据。
Original file line number Diff line number Diff line change 11# 一对一
22
33:::tip SeaQL 的 Rust 贴纸包 🦀
4- [ 我们的贴纸] ( https://www.sea-ql.org/sticker-pack/ ) 由优质防水 PVC 制成,具有独特的哑光表面,非常适合粘贴在笔记本电脑或其他小工具的背面!
4+ [ 我们的贴纸] ( https://www.sea-ql.org/sticker-pack/cn/ ) 由优质防水 PVC 制成,具有独特的哑光表面,非常适合粘贴在笔记本电脑或其他小工具的背面!
55:::
66
77一对一关系是最基本的数据库关系类型。假设一个 ` Cake ` Entity 最多有一个 ` Fruit ` 配料。
Original file line number Diff line number Diff line change 11# 嵌套 ActiveModel
22
3- 在 SeaORM 2.0 中,我们引入了 [ Smart Entity Loader] ( https://www.sea-ql.org/blog/2025-10-20-sea-orm-2.0/ ) (英文) ,使查询多路径关系到嵌套模型变得简单高效。这解决了读取端的问题。
3+ 在 SeaORM 2.0 中,我们引入了 [ Smart Entity Loader] ( https://www.sea-ql.org/blog/2025-10-20-sea-orm-2.0/ ) ,使查询多路径关系到嵌套模型变得简单高效。这解决了读取端的问题。
44
5- 有了 nested ActiveModel,你现在可以做相反的事:在一次操作中将嵌套对象持久化回数据库 。SeaORM 遍历树、检测变更、构建 insert 和 update 语句,并以正确的顺序执行它们以遵守外键依赖。
5+ 有了 nested ActiveModel,你现在可以做相反的事:在一次操作中将嵌套对象回写数据库 。SeaORM 遍历树、检测变更、构建 insert 和 update 语句,并以正确的顺序执行它们以遵守外键依赖。
66
7- 你可以在此页面的 [ quickstart 示例 ] ( https://github.com/SeaQL/sea-orm/blob/master/examples/quickstart/src/main.rs ) 中找到本文描述的所有技术。
7+ 你可以在此页面的 [ 快速入门示例 ] ( https://github.com/SeaQL/sea-orm/blob/master/examples/quickstart/src/main.rs ) 中找到本文描述的所有技术。
88
99## 概要
1010
@@ -50,7 +50,7 @@ user::ActiveModelEx {
5050. await ?
5151```
5252
53- .. 等价于手动执行以下操作 :
53+ .. 等于手动执行以下操作 :
5454
5555``` rust
5656let txn = db . begin (). await ? ;
Original file line number Diff line number Diff line change 11# 创建表
22
33:::tip Rustacean 贴纸包 🦀
4- [ 我们的贴纸] ( https://www.sea-ql.org/sticker-pack/ ) 采用优质防水乙烯基制成,具有独特的哑光效果。
4+ [ 我们的贴纸] ( https://www.sea-ql.org/sticker-pack/cn/ ) 采用优质防水乙烯基制成,具有独特的哑光效果。
55将它们贴在笔记本电脑、笔记本或任何小工具上,展示你对 Rust 的热爱!
66:::
77
You can’t perform that action at this time.
0 commit comments