- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for 55 (0.11 sec)
-
docs/en/docs/how-to/async-sql-encode-databases.md
```Python hl_lines="42 45-47 50-52" {!../../../docs_src/async_sql_databases/tutorial001.py!} ``` ## Read notes Create the *path operation function* to read notes: ```Python hl_lines="55-58" {!../../../docs_src/async_sql_databases/tutorial001.py!} ``` !!! note Notice that as we communicate with the database using `await`, the *path operation function* is declared with `async`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 5.3K bytes - Viewed (0) -
docs/em/docs/tutorial/security/simple-oauth2.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.9K bytes - Viewed (0) -
docs/en/docs/img/deployment/https/https.drawio
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 12 00:06:16 GMT 2022 - 25.7K bytes - Viewed (0) -
docs/zh/docs/tutorial/sql-databases.md
```Python hl_lines="21-26 29-32 35-40 43-47 50-53" {!> ../../../docs_src/sql_databases/sql_app_py39/main.py!} ``` === "Python 3.8+" ```Python hl_lines="23-28 31-34 37-42 45-49 52-55" {!> ../../../docs_src/sql_databases/sql_app/main.py!} ``` 我们在依赖项中的每个请求之前利用`yield`创建数据库会话,然后关闭它。 所以我们就可以在*路径操作函数*中创建需要的依赖,就能直接获取会话。 这样,我们就可以直接从*路径操作函数*内部调用`crud.get_user`并使用该会话,来进行对数据库操作。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 27K bytes - Viewed (0) -
docs/zh/docs/advanced/async-sql-databases.md
## 连接与断开 * 创建 `FastAPI` 应用 * 创建事件处理器,执行数据库连接与断开操作 ```Python hl_lines="42 45-47 50-52" {!../../../docs_src/async_sql_databases/tutorial001.py!} ``` ## 读取笔记 创建读取笔记的*路径操作函数*: ```Python hl_lines="55-58" {!../../../docs_src/async_sql_databases/tutorial001.py!} ``` !!! Note "笔记" 注意,本例与数据库通信时使用 `await`,因此*路径操作函数*要声明为异步函数(`asnyc`)。 ### 注意 `response_model=List[Note]`
Plain Text - Registered: Sun Mar 31 07:19:09 GMT 2024 - Last Modified: Sat Mar 30 22:44:40 GMT 2024 - 4.3K bytes - Viewed (0) -
docs/em/docs/advanced/async-sql-databases.md
* ✍ 👆 `FastAPI` 🈸. * ✍ 🎉 🐕🦺 🔗 & 🔌 ⚪️➡️ 💽. ```Python hl_lines="42 45-47 50-52" {!../../../docs_src/async_sql_databases/tutorial001.py!} ``` ## ✍ 🗒 ✍ *➡ 🛠️ 🔢* ✍ 🗒: ```Python hl_lines="55-58" {!../../../docs_src/async_sql_databases/tutorial001.py!} ``` !!! Note 👀 👈 👥 🔗 ⏮️ 💽 ⚙️ `await`, *➡ 🛠️ 🔢* 📣 ⏮️ `async`. ### 👀 `response_model=List[Note]` ⚫️ ⚙️ `typing.List`.
Plain Text - Registered: Sun Mar 31 07:19:09 GMT 2024 - Last Modified: Sat Apr 01 09:26:04 GMT 2023 - 4K bytes - Viewed (0) -
docs/em/docs/tutorial/sql-databases.md
### ✍ 👆 **FastAPI** *➡ 🛠️* 🔜, 😒, 📥 🐩 **FastAPI** *➡ 🛠️* 📟. === "🐍 3️⃣.6️⃣ & 🔛" ```Python hl_lines="23-28 31-34 37-42 45-49 52-55" {!> ../../../docs_src/sql_databases/sql_app/main.py!} ``` === "🐍 3️⃣.9️⃣ & 🔛" ```Python hl_lines="21-26 29-32 35-40 43-47 50-53"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 25.2K bytes - Viewed (1) -
docs/ko/docs/tutorial/security/simple-oauth2.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 22:37:23 GMT 2024 - 11.6K bytes - Viewed (0) -
docs/en/docs/img/deployment/https/https08.drawio
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 12 00:06:16 GMT 2022 - 20.9K bytes - Viewed (0) -
docs/en/docs/img/deployment/https/https04.drawio
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 12 00:06:16 GMT 2022 - 14K bytes - Viewed (0)