- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for Django (0.18 sec)
-
docs/zh/docs/tutorial/sql-databases.md
这样,您还可以拥有一个属性`orion_cat.owner`,它包含该宠物所有者的数据,这些数据取自另外一个表。 因此,`orion_cat.owner.name`可能是该宠物主人的姓名(来自表`owners`中的列`name`)。 它可能有一个像`"Arquilian"`(一种业务逻辑)。 当您尝试从您的宠物对象访问它时,ORM 将完成所有工作以从相应的表*所有者那里再获取信息。* 常见的 ORM 例如:Django-ORM(Django 框架的一部分)、SQLAlchemy ORM(SQLAlchemy 的一部分,独立于框架)和 Peewee(独立于框架)等。 在这里,我们将看到如何使用**SQLAlchemy ORM**。 以类似的方式,您也可以使用任何其他 ORM。 !!! tip 在文档中也有一篇使用 Peewee 的等效的文章。 ## 文件结构
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/en/docs/tutorial/sql-databases.md
It could have a value like `"Arquilian"`. And the ORM will do all the work to get the information from the corresponding table *owners* when you try to access it from your pet object. Common ORMs are for example: Django-ORM (part of the Django framework), SQLAlchemy ORM (part of SQLAlchemy, independent of framework) and Peewee (independent of framework), among others. Here we will see how to work with **SQLAlchemy ORM**.
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)