Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 712 for dependencies (0.08 seconds)

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

    {* ../../docs_src/dependencies/tutorial008_an_py39.py hl[18:19,26:27] *}
    
    Da mesma forma, você pode ter algumas dependências com `yield` e outras com `return` e ter uma relação de dependência entre algumas das duas.
    
    E você poderia ter uma única dependência que precisa de diversas outras dependências com `yield`, etc.
    
    Você pode ter qualquer combinação de dependências que você quiser.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  2. docs/zh/docs/advanced/testing-dependencies.md

    Zhongheng Cheng <******@****.***> 1734470322 -0500
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 17 21:18:42 GMT 2024
    - 1.9K bytes
    - Click Count (0)
  3. docs/ru/docs/tutorial/dependencies/classes-as-dependencies.md

    {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[11:15] *}
    
    Обратите внимание на метод `__init__`, используемый для создания экземпляра класса:
    
    {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[12] *}
    
    ...он имеет те же параметры, что и ранее используемая функция `common_parameters`:
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[8] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  4. docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md

    {* ../../docs_src/dependencies/tutorial007_py39.py hl[2:4] *}
    
    Значение, полученное из `yield`, внедряется в *операции пути* и другие зависимости:
    
    {* ../../docs_src/dependencies/tutorial007_py39.py hl[4] *}
    
    Код, следующий за оператором `yield`, выполняется после ответа:
    
    {* ../../docs_src/dependencies/tutorial007_py39.py hl[5:6] *}
    
    /// tip | Подсказка
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 19.7K bytes
    - Click Count (0)
  5. docs/de/docs/tutorial/dependencies/dependencies-with-yield.md

    {* ../../docs_src/dependencies/tutorial007_py39.py hl[2:4] *}
    
    Der ge`yield`ete Wert ist das, was in *Pfadoperationen* und andere Abhängigkeiten eingefügt wird:
    
    {* ../../docs_src/dependencies/tutorial007_py39.py hl[4] *}
    
    Der auf die `yield`-Anweisung folgende Code wird nach der Response ausgeführt:
    
    {* ../../docs_src/dependencies/tutorial007_py39.py hl[5:6] *}
    
    /// tip | Tipp
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 14.7K bytes
    - Click Count (0)
  6. docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md

    ///
    
    ## 使用 `yield` 的数据库依赖项
    
    例如,你可以使用这种方式创建一个数据库会话,并在完成后关闭它。
    
    在发送响应之前,只会执行 `yield` 语句及之前的代码:
    
    {* ../../docs_src/dependencies/tutorial007.py hl[2:4] *}
    
    生成的值会注入到 *路由函数* 和其他依赖项中:
    
    {* ../../docs_src/dependencies/tutorial007.py hl[4] *}
    
    `yield` 语句后面的代码会在创建响应后,发送响应前执行:
    
    {* ../../docs_src/dependencies/tutorial007.py hl[5:6] *}
    
    /// tip | 提示
    
    你可以使用 `async` 或普通函数。
    
    **FastAPI** 会像处理普通依赖一样,对每个依赖做正确的处理。
    
    ///
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 11.3K bytes
    - Click Count (0)
  7. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    In the same way, you can use `finally` to make sure the exit steps are executed, no matter if there was an exception or not.
    
    {* ../../docs_src/dependencies/tutorial007_py39.py hl[3,5] *}
    
    ## Sub-dependencies with `yield` { #sub-dependencies-with-yield }
    
    You can have sub-dependencies and "trees" of sub-dependencies of any size and shape, and any or all of them can use `yield`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 12.9K bytes
    - Click Count (0)
  8. docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md

    例えば、これを使ってデータベースセッションを作成し、終了後にそれを閉じることができます。
    
    レスポンスを送信する前に`yield`文を含む前のコードのみが実行されます。
    
    {* ../../docs_src/dependencies/tutorial007.py hl[2,3,4] *}
    
    生成された値は、*path operations*や他の依存関係に注入されるものです:
    
    {* ../../docs_src/dependencies/tutorial007.py hl[4] *}
    
    `yield`文に続くコードは、レスポンスが送信された後に実行されます:
    
    {* ../../docs_src/dependencies/tutorial007.py hl[5,6] *}
    
    /// tip | 豆知識
    
    `async`や通常の関数を使用することができます。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 12.3K bytes
    - Click Count (0)
  9. docs/de/docs/tutorial/dependencies/classes-as-dependencies.md

    {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[11:15] *}
    
    Achten Sie auf die Methode `__init__`, die zum Erstellen der Instanz der Klasse verwendet wird:
    
    {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[12] *}
    
    ... sie hat die gleichen Parameter wie unsere vorherige `common_parameters`:
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[8] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  10. docs/ko/docs/tutorial/dependencies/dependencies-with-yield.md

    응답을 생성하기 전에는 `yield`문을 포함하여 그 이전의 코드만이 실행됩니다:
    
    {* ../../docs_src/dependencies/tutorial007.py hl[2:4] *}
    
    yield된 값은 *경로 작업* 및 다른 의존성들에 주입되는 값 입니다:
    
    {* ../../docs_src/dependencies/tutorial007.py hl[4] *}
    
    `yield`문 다음의 코드는 응답을 생성한 후 보내기 전에 실행됩니다:
    
    {* ../../docs_src/dependencies/tutorial007.py hl[5:6] *}
    
    /// tip | 팁
    
    `async` 함수와 일반 함수 모두 사용할 수 있습니다.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Feb 09 14:54:09 GMT 2025
    - 14.2K bytes
    - Click Count (0)
Back to Top