- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for Retriever (0.18 sec)
-
docs/en/docs/how-to/sql-databases-peewee.md
But recent versions of Pydantic allow providing a custom class that inherits from `pydantic.utils.GetterDict`, to provide the functionality used when using the `orm_mode = True` to retrieve the values for ORM model attributes. We are going to create a custom `PeeweeGetterDict` class and use it in all the same Pydantic *models* / schemas that use `orm_mode`: ```Python hl_lines="3 8-13 31 49"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Jan 16 13:23:25 GMT 2024 - 23.6K bytes - Viewed (1) -
docs/en/docs/tutorial/body-updates.md
{!> ../../../docs_src/body_updates/tutorial002.py!} ``` ### Partial updates recap In summary, to apply partial updates you would: * (Optionally) use `PATCH` instead of `PUT`. * Retrieve the stored data. * Put that data in a Pydantic model. * Generate a `dict` without default values from the input model (using `exclude_unset`).
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 5.6K bytes - Viewed (0) -
docs/en/docs/tutorial/sql-databases.md
!!! tip Also notice that there are `response_models` that have standard Python types like `List[schemas.Item]`. But as the content/parameter of that `List` is a Pydantic *model* with `orm_mode`, the data will be retrieved and returned to the client as normally, without problems. ### About `def` vs `async def`
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)