mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-21 01:15:17 -04:00
🌐 Update SQLAlchemy instruction in Chinese translation docs/zh/docs/tutorial/sql-databases.md (#9712)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
1 parent
0a3dc7d107
commit
0f4b6294bf
1 file changed
+15
-1
@@ -78,9 +78,23 @@ ORM 具有在代码和数据库表(“*关系型”)中的**对象**之间
|
||||
|
||||
现在让我们看看每个文件/模块的作用。
|
||||
|
||||
## 安装 SQLAlchemy
|
||||
|
||||
先下载`SQLAlchemy`所需要的依赖:
|
||||
|
||||
<div class="termy">
|
||||
|
||||
```console
|
||||
$ pip install sqlalchemy
|
||||
|
||||
---> 100%
|
||||
```
|
||||
|
||||
</div>
|
||||
|
||||
## 创建 SQLAlchemy 部件
|
||||
|
||||
让我们涉及到文件`sql_app/database.py`。
|
||||
让我们转到文件`sql_app/database.py`。
|
||||
|
||||
### 导入 SQLAlchemy 部件
|
||||
|
||||
|
||||
Reference in new issue
Block a user