Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for 35 (0.17 sec)

  1. docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md

    そのため、依存関係の中にある特定の例外を`except SomeException`で探すことができます。
    
    同様に、`finally`を用いて例外があったかどうかにかかわらず、終了ステップを確実に実行することができます。
    
    ```Python hl_lines="3 5"
    {!../../../docs_src/dependencies/tutorial007.py!}
    ```
    
    ## `yield`を持つサブ依存関係
    
    任意の大きさや形のサブ依存関係やサブ依存関係の「ツリー」を持つことができ、その中で`yield`を使用することができます。
    
    **FastAPI** は、`yield`を持つ各依存関係の「終了コード」が正しい順番で実行されていることを確認します。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/dependencies/dependencies-with-yield.md

    🖼, 🚥 📟 ☝ 🖕, ➕1️⃣ 🔗 ⚖️ *➡ 🛠️*, ⚒ 💽 💵 "💾" ⚖️ ✍ 🙆 🎏 ❌, 👆 🔜 📨 ⚠ 👆 🔗.
    
    , 👆 💪 👀 👈 🎯 ⚠ 🔘 🔗 ⏮️ `except SomeException`.
    
    🎏 🌌, 👆 💪 ⚙️ `finally` ⚒ 💭 🚪 📶 🛠️, 🙅‍♂ 🤔 🚥 📤 ⚠ ⚖️ 🚫.
    
    ```Python hl_lines="3  5"
    {!../../../docs_src/dependencies/tutorial007.py!}
    ```
    
    ## 🎧-🔗 ⏮️ `yield`
    
    👆 💪 ✔️ 🎧-🔗 & "🌲" 🎧-🔗 🙆 📐 & 💠, & 🙆 ⚖️ 🌐 👫 💪 ⚙️ `yield`.
    
    **FastAPI** 🔜 ⚒ 💭 👈 "🚪 📟" 🔠 🔗 ⏮️ `yield` 🏃 ☑ ✔.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md

    例如,如果中间某个代码在另一个依赖中或在*路径操作*中使数据库事务 "回滚 "或产生任何其他错误,您就会在依赖中收到异常。
    
    因此,你可以使用 `except SomeException` 在依赖关系中查找特定的异常。
    
    同样,您也可以使用 `finally` 来确保退出步骤得到执行,无论是否存在异常。
    
    ```Python hl_lines="3  5"
    {!../../../docs_src/dependencies/tutorial007.py!}
    ```
    ## 使用`yield`的子依赖项
    
    你可以拥有任意大小和形状的子依赖和子依赖的“树”,而且它们中的任何一个或所有的都可以使用`yield`。
    
    **FastAPI** 会确保每个带有`yield`的依赖中的“退出代码”按正确顺序运行。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.3K bytes
    - Viewed (0)
Back to top