Skip to content

🌐 Add Chinese translation for docs/zh/docs/tutorial/sql-databases.md#13051

Merged
alejsdev merged 12 commits intofastapi:masterfrom
Zhongheng-Cheng:translate/sql_databases
Dec 15, 2024
Merged

🌐 Add Chinese translation for docs/zh/docs/tutorial/sql-databases.md#13051
alejsdev merged 12 commits intofastapi:masterfrom
Zhongheng-Cheng:translate/sql_databases

Conversation

@Zhongheng-Cheng
Copy link
Contributor

Add Chinese translation for docs/zh/docs/tutorial/sql-databases.md
docs/zh/docs/tutorial/sql-databases.md 增加了中文翻译

@github-actions github-actions bot added the lang-all Translations label Dec 9, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2024

@alejsdev alejsdev added lang-zh Chinese translations awaiting-review labels Dec 9, 2024

/// tip

您可以使用任何其他您想要的 SQL 或 NoSQL 数据库库(在某些情况下称为 <abbr title="对象关系映射器(Object Relational Mapper,ORM),一个比较花哨的说法,用来指代一种库,其中某些类对应于 SQL 数据表,这些类的实例则对应于表中的行。">“ORM”</abbr>),FastAPI 不会强迫您使用任何东西。😎
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

花哨应该有更贴切的翻译

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我准备改为“高大上”,这样应该更符合汉语表达习惯。你觉得如何?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

参考这个:https://cn.bing.com/dict/search?q=fancy+term&qs=n&form=Z9LH5&sp=-1&lq=0&pq=fancy+term&sc=0-10&sk=&cvid=5C4F50FD82E34CEDABBB69161958D755&ghsh=0&ghacc=0&ghpl=

建议:
对象关系映射器(Object Relational Mapper,ORM),一个术语,用来指代一种库,其中某些类对应于 SQL 数据表,这些类的实例则对应于表中的行。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

谢谢!

已修改。


### 创建表

然后,我们来添加一个函数,使用 `SQLModel.metadata.create_all(engine)` 为所有*表模型***创建表**。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这是为什么是三个星号连着呀

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

谢谢回复!
“表模型”是斜体,“创建表”是粗体,再加上词语之间没有空格,他俩的星号就连在了一起。
不过markdown能够正确解析这个语法,目前看来没有问题。

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@alejsdev alejsdev merged commit 929e844 into fastapi:master Dec 15, 2024
@alejsdev
Copy link
Member

Thanks for your contribution! @Zhongheng-Cheng 🤓
And thanks for your review @waketzheng 🚀

@Zhongheng-Cheng Zhongheng-Cheng deleted the translate/sql_databases branch December 17, 2024 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved-1 lang-all Translations lang-zh Chinese translations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants