Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 331 - 340 of 374 for Dict (0.02 seconds)

  1. docs/pt/docs/tutorial/sql-databases.md

    ### Atualizar um Hero com `HeroUpdate` { #update-a-hero-with-heroupdate }
    
    Podemos **atualizar um hero**. Para isso, usamos uma operação HTTP `PATCH`.
    
    E no código, obtemos um `dict` com todos os dados enviados pelo cliente, **apenas os dados enviados pelo cliente**, excluindo quaisquer valores que estariam lá apenas por serem os valores padrão. Para fazer isso, usamos `exclude_unset=True`. Este é o truque principal. 🪄
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 20:32:40 GMT 2025
    - 16.9K bytes
    - Click Count (0)
  2. docs/ja/docs/tutorial/handling-errors.md

    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    /// tip | 豆知識
    
    `HTTPException`を発生させる際には、`str`だけでなく、JSONに変換できる任意の値を`detail`パラメータとして渡すことができます。
    
    `dict`や`list`などを渡すことができます。
    
    これらは **FastAPI** によって自動的に処理され、JSONに変換されます。
    
    ///
    
    ## カスタムヘッダーの追加
    
    例えば、いくつかのタイプのセキュリティのために、HTTPエラーにカスタムヘッダを追加できると便利な状況がいくつかあります。
    
    おそらくコードの中で直接使用する必要はないでしょう。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 11.6K bytes
    - Click Count (0)
  3. docs/zh/docs/tutorial/sql-databases.md

    我们可以**读取**单个 `hero` 。
    
    {* ../../docs_src/sql_databases/tutorial002_an_py310.py ln[75:80] hl[77] *}
    
    ### 用 `HeroUpdate` 更新单个 Hero
    
    我们可以**更新**单个 `hero` 。为此,我们会使用 HTTP 的 `PATCH` 操作。
    
    在代码中,我们会得到一个 `dict` ,其中包含客户端发送的所有数据,**只有客户端发送的数据**,并排除了任何一个仅仅作为默认值存在的值。为此,我们使用 `exclude_unset=True` 。这是最主要的技巧。🪄
    
    然后我们会使用 `hero_db.sqlmodel_update(hero_data)` ,来利用 `hero_data` 的数据更新 `hero_db` 。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Dec 15 17:11:14 GMT 2024
    - 14.9K bytes
    - Click Count (0)
  4. docs/ko/docs/tutorial/sql-databases.md

    {* ../../docs_src/sql_databases/tutorial002_an_py310.py ln[75:80] hl[77] *}
    
    ### `HeroUpdate`로 Hero 수정하기
    
    **hero를 수정**할 수도 있습니다. 이를 위해 HTTP `PATCH` 작업을 사용합니다.
    
    코드에서는 클라이언트가 보낸 데이터를 딕셔너리 형태(`dict`)로 가져옵니다. 이는 **클라이언트가 보낸 데이터만 포함**하며, 기본값으로 들어가는 값은 제외합니다. 이를 위해 `exclude_unset=True`를 사용합니다. 이것이 주요 핵심입니다. 🪄
    
    그런 다음, `hero_db.sqlmodel_update(hero_data)`를 사용하여 `hero_data`의 데이터를 `hero_db`에 업데이트합니다.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 24 16:14:29 GMT 2024
    - 18K bytes
    - Click Count (0)
  5. helm-releases/minio-5.0.6.tgz

    .Values.rootUser }} {{- .Values.rootUser | toString }} {{- else }} {{- include "minio.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "minio.fullname" .) "Length" 20 "Key" "rootUser") }} {{- end }} {{- end -}} {{- define "minio.root.password" -}} {{- if .Values.rootPassword }} {{- .Values.rootPassword | toString }} {{- else }} {{- include "minio.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "minio.fullname" .) "Length" 40 "Key" "rootPassword") }} {{-...
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon Feb 13 06:53:06 GMT 2023
    - 20.3K bytes
    - Click Count (0)
  6. helm-releases/minio-4.0.11.tgz

    .Values.rootUser }} {{- .Values.rootUser | toString }} {{- else }} {{- include "minio.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "minio.fullname" .) "Length" 20 "Key" "rootUser") }} {{- end }} {{- end -}} {{- define "minio.root.password" -}} {{- if .Values.rootPassword }} {{- .Values.rootPassword | toString }} {{- else }} {{- include "minio.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "minio.fullname" .) "Length" 40 "Key" "rootPassword") }} {{-...
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Aug 07 05:41:47 GMT 2022
    - 19.2K bytes
    - Click Count (0)
  7. helm-releases/minio-4.0.2.tgz

    .Values.rootUser }} {{- .Values.rootUser | toString }} {{- else }} {{- include "minio.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "minio.fullname" .) "Length" 20 "Key" "rootUser") }} {{- end }} {{- end -}} {{- define "minio.root.password" -}} {{- if .Values.rootPassword }} {{- .Values.rootPassword | toString }} {{- else }} {{- include "minio.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "minio.fullname" .) "Length" 40 "Key" "rootPassword") }} {{-...
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon May 09 04:25:47 GMT 2022
    - 18K bytes
    - Click Count (0)
  8. helm-releases/minio-4.0.3.tgz

    .Values.rootUser }} {{- .Values.rootUser | toString }} {{- else }} {{- include "minio.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "minio.fullname" .) "Length" 20 "Key" "rootUser") }} {{- end }} {{- end -}} {{- define "minio.root.password" -}} {{- if .Values.rootPassword }} {{- .Values.rootPassword | toString }} {{- else }} {{- include "minio.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "minio.fullname" .) "Length" 40 "Key" "rootPassword") }} {{-...
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Jul 08 06:16:22 GMT 2022
    - 18K bytes
    - Click Count (0)
  9. helm-releases/minio-5.0.0.tgz

    .Values.rootUser }} {{- .Values.rootUser | toString }} {{- else }} {{- include "minio.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "minio.fullname" .) "Length" 20 "Key" "rootUser") }} {{- end }} {{- end -}} {{- define "minio.root.password" -}} {{- if .Values.rootPassword }} {{- .Values.rootPassword | toString }} {{- else }} {{- include "minio.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "minio.fullname" .) "Length" 40 "Key" "rootPassword") }} {{-...
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Oct 25 10:20:22 GMT 2022
    - 19.8K bytes
    - Click Count (0)
  10. helm-releases/minio-5.4.0.tgz

    .Values.rootUser }} {{- .Values.rootUser | toString }} {{- else }} {{- include "minio.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "minio.fullname" .) "Length" 20 "Key" "rootUser") }} {{- end }} {{- end -}} {{- define "minio.root.password" -}} {{- if .Values.rootPassword }} {{- .Values.rootPassword | toString }} {{- else }} {{- include "minio.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "minio.fullname" .) "Length" 40 "Key" "rootPassword") }} {{-...
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Jan 03 05:34:47 GMT 2025
    - 21.7K bytes
    - Click Count (0)
Back to Top