- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 245 for Dependencies (0.08 seconds)
-
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_py310.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 Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 12.6K bytes - Click Count (0) -
docs/ko/docs/tutorial/dependencies/dependencies-with-yield.md
응답을 생성하기 전에는 `yield`문을 포함하여 그 이전의 코드만이 실행됩니다: {* ../../docs_src/dependencies/tutorial007_py310.py hl[2:4] *} yield된 값은 *경로 처리* 및 다른 의존성들에 주입되는 값 입니다: {* ../../docs_src/dependencies/tutorial007_py310.py hl[4] *} `yield`문 다음의 코드는 응답을 생성한 후 실행됩니다: {* ../../docs_src/dependencies/tutorial007_py310.py hl[5:6] *} /// tip `async` 함수와 일반 함수 모두 사용할 수 있습니다.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 14.3K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/dependencies/dependencies-with-yield.md
例如,你可以用它建立一個資料庫 session,並在完成後關閉。 只有 `yield` 之前(含 `yield` 本身)的程式碼會在產生回應之前執行: {* ../../docs_src/dependencies/tutorial007_py310.py hl[2:4] *} 由 `yield` 產生的值會被注入到路徑操作(path operation)與其他相依中: {* ../../docs_src/dependencies/tutorial007_py310.py hl[4] *} 位於 `yield` 之後的程式碼會在回應之後執行: {* ../../docs_src/dependencies/tutorial007_py310.py hl[5:6] *} /// tip 你可以使用 `async` 或一般函式。 **FastAPI** 都會正確處理,和一般相依相同。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 11.9K bytes - Click Count (0) -
docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md
例如,你可以用这种方式创建一个数据库会话,并在完成后将其关闭。 在创建响应之前,只会执行 `yield` 语句及其之前的代码: {* ../../docs_src/dependencies/tutorial007_py310.py hl[2:4] *} `yield` 产生的值会注入到 *路径操作* 和其他依赖项中: {* ../../docs_src/dependencies/tutorial007_py310.py hl[4] *} `yield` 语句后面的代码会在响应之后执行: {* ../../docs_src/dependencies/tutorial007_py310.py hl[5:6] *} /// tip | 提示 你可以使用 `async` 或普通函数。 **FastAPI** 会像处理普通依赖一样对它们进行正确处理。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 12.1K bytes - Click Count (0) -
docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md
例えば、これを使ってデータベースセッションを作成し、終了後にそれを閉じることができます。 レスポンスを作成する前に、`yield`文より前のコード(および`yield`文を含む)が実行されます: {* ../../docs_src/dependencies/tutorial007_py310.py hl[2:4] *} 生成された値は、*path operations*や他の依存関係に注入されるものです: {* ../../docs_src/dependencies/tutorial007_py310.py hl[4] *} `yield`文に続くコードは、レスポンスの後に実行されます: {* ../../docs_src/dependencies/tutorial007_py310.py hl[5:6] *} /// tip | 豆知識 `async`や通常の関数を使用することができます。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 15.4K bytes - Click Count (0) -
docs/ja/docs/advanced/advanced-dependencies.md
この場合、レスポンスの送信が終わるまでデータベースセッションが保持されますが、使わないのであれば保持する必要はありません。 次のようになります: {* ../../docs_src/dependencies/tutorial013_an_py310.py *} 終了コード、すなわち `Session` の自動クローズは: {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[19:21] *} ...の部分で定義されており、遅いデータ送信が終わった後に実行されます: {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[30:38] hl[31:33] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 11.4K bytes - Click Count (0) -
docs/uk/docs/advanced/advanced-dependencies.md
Докладніше читайте в документації: [Залежності з `yield` - Ранній вихід і `scope`](../tutorial/dependencies/dependencies-with-yield.md#early-exit-and-scope). ### Залежності з `yield` і `StreamingResponse`, технічні деталі { #dependencies-with-yield-and-streamingresponse-technical-details }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 13.9K bytes - Click Count (0) -
docs/fr/docs/advanced/advanced-dependencies.md
Vous pouvez en lire davantage dans les documents pour [Dépendances avec `yield` - Sortie anticipée et `scope`](../tutorial/dependencies/dependencies-with-yield.md#early-exit-and-scope). ### Dépendances avec `yield` et `StreamingResponse`, Détails techniques { #dependencies-with-yield-and-streamingresponse-technical-details }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 10.6K bytes - Click Count (0) -
docs/de/docs/advanced/advanced-dependencies.md
Mehr dazu finden Sie in der Dokumentation zu [Abhängigkeiten mit `yield` – Frühes Beenden und `scope`](../tutorial/dependencies/dependencies-with-yield.md#early-exit-and-scope). ### Abhängigkeiten mit `yield` und `StreamingResponse`, Technische Details { #dependencies-with-yield-and-streamingresponse-technical-details }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 10.3K bytes - Click Count (0) -
docs/pt/docs/advanced/advanced-dependencies.md
Você pode ler mais na documentação em [Dependências com `yield` - Saída antecipada e `scope`](../tutorial/dependencies/dependencies-with-yield.md#early-exit-and-scope). ### Dependências com `yield` e `StreamingResponse`, Detalhes Técnicos { #dependencies-with-yield-and-streamingresponse-technical-details }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 9.9K bytes - Click Count (0)