- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getUser (0.17 sec)
-
docs/em/docs/how-to/sql-databases-peewee.md
``` ๐ฅ ๐ฅ โ ๐ฅ ๐ข ๐ โ ๐ (โ `.items` `some_user.items`) ๐ `peewee.ModelSelect`. & ๐ฅ ๐ ๐ผ, ๐จ `list` โฎ๏ธ โซ๏ธ. & โคด๏ธ ๐ฅ โ๏ธ โซ๏ธ Pydantic *๐ท* / ๐ ๐ โ๏ธ `orm_mode = True`, โฎ๏ธ ๐ณ ๐ข `getter_dict = PeeweeGetterDict`. !!! tip ๐ฅ ๐ด ๐ช โ 1๏ธโฃ `PeeweeGetterDict` ๐, & ๐ฅ ๐ช โ๏ธ โซ๏ธ ๐ Pydantic *๐ท* / ๐. ## ๐ฉ ๐จ๐ป ๐ โก๏ธ ๐ ๐ `sql_app/crud.py`. ### โ ๐ ๐ฉ ๐จ๐ป
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 19.2K bytes - Viewed (0) -
docs/en/docs/how-to/sql-databases-peewee.md
And if that's the case, just return a `list` with it. And then we use it in the Pydantic *models* / schemas that use `orm_mode = True`, with the configuration variable `getter_dict = PeeweeGetterDict`. !!! tip We only need to create one `PeeweeGetterDict` class, and we can use it in all the Pydantic *models* / schemas. ## CRUD utils Now let's see the file `sql_app/crud.py`.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Jan 16 13:23:25 GMT 2024 - 23.6K bytes - Viewed (0) -
docs_src/sql_databases_peewee/sql_app/schemas.py
class Config: orm_mode = True getter_dict = PeeweeGetterDict class UserBase(BaseModel): email: str class UserCreate(UserBase): password: str class User(UserBase): id: int is_active: bool items: List[Item] = [] class Config: orm_mode = True
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 868 bytes - Viewed (0)