Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Pets (0.12 sec)

  1. docs/zh/docs/tutorial/sql-databases.md

    ## ORMs(对象关系映射)
    
    **FastAPI**可与任何数据库在任何样式的库中一起与 数据库进行通信。
    
    一种常见的模式是使用“ORM”:对象关系映射。
    
    ORM 具有在代码和数据库表(“*关系型”)中的**对象**之间转换(“*映射*”)的工具。
    
    使用 ORM,您通常会在 SQL 数据库中创建一个代表映射的类,该类的每个属性代表一个列,具有名称和类型。
    
    例如,一个类`Pet`可以表示一个 SQL 表`pets`。
    
    该类的每个*实例对象都代表数据库中的一行数据。*
    
    又例如,一个对象`orion_cat`(`Pet`的一个实例)可以有一个属性`orion_cat.type`, 对标数据库中的`type`列。并且该属性的值可以是其它,例如`"cat"`。
    
    这些 ORM 还具有在表或实体之间建立关系的工具(比如创建多表关系)。
    
    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)
  2. docs/em/docs/tutorial/sql-databases.md

    **FastAPI** 👷 ⏮️ 🙆 💽 & 🙆 👗 🗃 💬 💽.
    
    ⚠ ⚓ ⚙️ "🐜": "🎚-🔗 🗺" 🗃.
    
    🐜 ✔️ 🧰 🗜 ("*🗺*") 🖖 *🎚* 📟 & 💽 🏓 ("*🔗*").
    
    ⏮️ 🐜, 👆 🛎 ✍ 🎓 👈 🎨 🏓 🗄 💽, 🔠 🔢 🎓 🎨 🏓, ⏮️ 📛 & 🆎.
    
    🖼 🎓 `Pet` 💪 🎨 🗄 🏓 `pets`.
    
    & 🔠 *👐* 🎚 👈 🎓 🎨 ⏭ 💽.
    
    🖼 🎚 `orion_cat` (👐 `Pet`) 💪 ✔️ 🔢 `orion_cat.type`, 🏓 `type`. & 💲 👈 🔢 💪, ✅ `"cat"`.
    
    👫 🐜 ✔️ 🧰 ⚒ 🔗 ⚖️ 🔗 🖖 🏓 ⚖️ 👨‍💼.
    
    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)
  3. docs/en/docs/tutorial/sql-databases.md

    With an ORM, you normally create a class that represents a table in a SQL database, each attribute of the class represents a column, with a name and a type.
    
    For example a class `Pet` could represent a SQL table `pets`.
    
    And each *instance* object of that class represents a row in the database.
    
    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)
Back to top