- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for more (0.13 sec)
-
docs/zh/docs/tutorial/sql-databases.md
``` !!! tip 请注意,读取用户(从 API 返回)时将使用不包括`password`的`User` Pydantic*模型*。 ### 使用 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"
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) -
docs/em/docs/tutorial/sql-databases.md
### ⚙️ Pydantic `orm_mode` 🔜, 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️⃣ & 🔛" ```Python hl_lines="15 19-20 31 36-37"
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) -
docs/en/docs/tutorial/sql-databases.md
* It requires more code and is a bit more complex. * The middleware has to be an `async` function. * If there is code in it that has to "wait" for the network, it could "block" your application there and degrade performance a bit. * Although it's probably not very problematic here with the way `SQLAlchemy` works.
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)