- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for relationship (0.35 sec)
-
docs_src/sql_databases/sql_app_py39/models.py
from sqlalchemy.orm import relationship from .database import Base class User(Base): __tablename__ = "users" id = Column(Integer, primary_key=True) email = Column(String, unique=True, index=True) hashed_password = Column(String) is_active = Column(Boolean, default=True) items = relationship("Item", back_populates="owner") class Item(Base):
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Jan 09 14:35:33 GMT 2024 - 710 bytes - Viewed (0) -
docs_src/sql_databases/sql_app/models.py
from sqlalchemy.orm import relationship from .database import Base class User(Base): __tablename__ = "users" id = Column(Integer, primary_key=True) email = Column(String, unique=True, index=True) hashed_password = Column(String) is_active = Column(Boolean, default=True) items = relationship("Item", back_populates="owner") class Item(Base):
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Jan 09 14:35:33 GMT 2024 - 710 bytes - Viewed (0) -
docs_src/sql_databases/sql_app_py310/models.py
from sqlalchemy.orm import relationship from .database import Base class User(Base): __tablename__ = "users" id = Column(Integer, primary_key=True) email = Column(String, unique=True, index=True) hashed_password = Column(String) is_active = Column(Boolean, default=True) items = relationship("Item", back_populates="owner") class Item(Base):
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Jan 09 14:35:33 GMT 2024 - 710 bytes - Viewed (0) -
docs/en/docs/tutorial/sql-databases.md
```Python hl_lines="1 10-13 21-24" {!../../../docs_src/sql_databases/sql_app/models.py!} ``` ### Create the relationships Now create the relationships. For this, we use `relationship` provided by SQLAlchemy ORM. This will become, more or less, a "magic" attribute that will contain the values from other tables related to this one.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 29.6K bytes - Viewed (0) -
docs/en/docs/history-design-future.md
Also, the best approach was to use already existing standards. So, before even starting to code **FastAPI**, I spent several months studying the specs for OpenAPI, JSON Schema, OAuth2, etc. Understanding their relationship, overlap, and differences. ## Design Then I spent some time designing the developer "API" I wanted to have as a user (as a developer using FastAPI).
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 4.1K bytes - Viewed (0) -
docs/en/docs/how-to/sql-databases-peewee.md
We are also adding the magic `owner_id` attribute to `Item`. ### Create a `PeeweeGetterDict` for the Pydantic *models* / schemas When you access a relationship in a Peewee object, like in `some_user.items`, Peewee doesn't provide a `list` of `Item`. It provides a special custom object of class `ModelSelect`.
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/zh/docs/tutorial/sql-databases.md
```Python hl_lines="1 10-13 21-24" {!../../../docs_src/sql_databases/sql_app/models.py!} ``` ### 创建关系 现在创建关系。 为此,我们使用SQLAlchemy ORM提供的`relationship`。 这将或多或少会成为一种“神奇”属性,其中表示该表与其他相关的表中的值。 ```Python hl_lines="2 15 26" {!../../../docs_src/sql_databases/sql_app/models.py!} ```
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 27K bytes - Viewed (0) -
docs/em/docs/tutorial/sql-databases.md
```Python hl_lines="1 10-13 21-24" {!../../../docs_src/sql_databases/sql_app/models.py!} ``` ### ✍ 💛 🔜 ✍ 💛. 👉, 👥 ⚙️ `relationship` 🚚 🇸🇲 🐜. 👉 🔜 ▶️️, 🌅 ⚖️ 🌘, "🎱" 🔢 👈 🔜 🔌 💲 ⚪️➡️ 🎏 🏓 🔗 👉 1️⃣. ```Python hl_lines="2 15 26" {!../../../docs_src/sql_databases/sql_app/models.py!} ```
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 25.2K bytes - Viewed (1) -
fastapi/routing.py
# it now to a dict. # Otherwise, there's no way to extract lazy data that requires attribute # access instead of dict iteration, e.g. lazy relationships. return res return _model_dump( res, by_alias=True, exclude_unset=exclude_unset, exclude_defaults=exclude_defaults,
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Apr 02 02:48:51 GMT 2024 - 170.1K bytes - Viewed (0) -
docs/en/docs/release-notes.md
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sun Apr 28 00:28:00 GMT 2024 - 385.5K bytes - Viewed (1)