Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for owner_id (0.16 sec)

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

        `item.dict()`
    
        然后我们将dict的键值对 作为关键字参数传递给 SQLAlchemy `Item`:
    
        `Item(**item.dict())`
    
        然后我们传递 Pydantic模型未提供的额外关键字参数`owner_id`:
    
        `Item(**item.dict(), owner_id=user_id)`
    
    ## 主**FastAPI**应用程序
    
    现在在`sql_app/main.py`文件中 让我们集成和使用我们之前创建的所有其他部分。
    
    ### 创建数据库表
    
    以非常简单的方式创建数据库表:
    
    === "Python 3.9+"
    
        ```Python hl_lines="7"
    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

        `item.dict()`
    
         & ⤴️ 👥 🚶‍♀️ `dict`'Ⓜ 🔑-💲 👫 🇨🇻 ❌ 🇸🇲 `Item`, ⏮️:
    
        `Item(**item.dict())`
    
         & ⤴️ 👥 🚶‍♀️ ➕ 🇨🇻 ❌ `owner_id` 👈 🚫 🚚 Pydantic *🏷*, ⏮️:
    
        `Item(**item.dict(), owner_id=user_id)`
    
    ## 👑 **FastAPI** 📱
    
    & 🔜 📁 `sql_app/main.py` ➡️ 🛠️ & ⚙️ 🌐 🎏 🍕 👥 ✍ ⏭.
    
    ### ✍ 💽 🏓
    
    📶 🙃 🌌 ✍ 💽 🏓:
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    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

        `Item(**item.dict())`
    
        And then we pass the extra keyword argument `owner_id` that is not provided by the Pydantic *model*, with:
    
        `Item(**item.dict(), owner_id=user_id)`
    
    ## Main **FastAPI** app
    
    And now in the file `sql_app/main.py` let's integrate and use all the other parts we created before.
    
    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