Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

    ### 关于 `def` 对比 `async def`
    
    *在这里,我们在路径操作函数*和依赖项中都使用着 SQLAlchemy 模型,它将与外部数据库进行通信。
    
    这会需要一些“等待时间”。
    
    但是由于 SQLAlchemy 不具有`await`直接使用的兼容性,因此类似于:
    
    ```Python
    user = await db.query(User).first()
    ```
    
    ...相反,我们可以使用:
    
    ```Python
    user = db.query(User).first()
    ```
    
    然后我们应该声明*路径操作函数*和不带 的依赖关系`async def`,只需使用普通的`def`,如下:
    
    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

    ### 🔃 `def` 🆚 `async def`
    
    📥 👥 ⚙️ 🇸🇲 📟 🔘 *➡ 🛠️ 🔢* & 🔗, &, 🔄, ⚫️ 🔜 🚶 & 🔗 ⏮️ 🔢 💽.
    
    👈 💪 ⚠ 🚚 "⌛".
    
    ✋️ 🇸🇲 🚫 ✔️ 🔗 ⚙️ `await` 🔗, 🔜 ⏮️ 🕳 💖:
    
    ```Python
    user = await db.query(User).first()
    ```
    
    ...& ↩️ 👥 ⚙️:
    
    ```Python
    user = db.query(User).first()
    ```
    
    ⤴️ 👥 🔜 📣 *➡ 🛠️ 🔢* & 🔗 🍵 `async def`, ⏮️ 😐 `def`,:
    
    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

    That could potentially require some "waiting".
    
    But as SQLAlchemy doesn't have compatibility for using `await` directly, as would be with something like:
    
    ```Python
    user = await db.query(User).first()
    ```
    
    ...and instead we are using:
    
    ```Python
    user = db.query(User).first()
    ```
    
    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