Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for true (0.15 sec)

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

    ### 使用 Pydantic 的`orm_mode`
    
    现在,在用于查询的 Pydantic*模型*`Item`中`User`,添加一个内部`Config`类。
    
    此类[`Config`](https://docs.pydantic.dev/latest/api/config/)用于为 Pydantic 提供配置。
    
    在`Config`类中,设置属性`orm_mode = True`。
    
    === "Python 3.10+"
    
        ```Python hl_lines="13  17-18  29  34-35"
        {!> ../../../docs_src/sql_databases/sql_app_py310/schemas.py!}
        ```
    
    === "Python 3.9+"
    
    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)
  2. docs/em/docs/tutorial/sql-databases.md

    🔜, Pydantic *🏷* 👂, `Item` & `User`, 🚮 🔗 `Config` 🎓.
    
    👉 <a href="https://docs.pydantic.dev/latest/api/config/" class="external-link" target="_blank">`Config`</a> 🎓 ⚙️ 🚚 📳 Pydantic.
    
    `Config` 🎓, ⚒ 🔢 `orm_mode = True`.
    
    === "🐍 3️⃣.6️⃣ &amp; 🔛"
    
        ```Python hl_lines="15  19-20  31  36-37"
        {!> ../../../docs_src/sql_databases/sql_app/schemas.py!}
        ```
    
    === "🐍 3️⃣.9️⃣ &amp; 🔛"
    
    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)
  3. docs/en/docs/tutorial/sql-databases.md

    This <a href="https://docs.pydantic.dev/latest/api/config/" class="external-link" target="_blank">`Config`</a> class is used to provide configurations to Pydantic.
    
    In the `Config` class, set the attribute `orm_mode = True`.
    
    === "Python 3.10+"
    
        ```Python hl_lines="13  17-18  29  34-35"
        {!> ../../../docs_src/sql_databases/sql_app_py310/schemas.py!}
        ```
    
    === "Python 3.9+"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
Back to top