Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SELECT (0.18 sec)

  1. docs/en/docs/how-to/sql-databases-peewee.md

    ```
    
    ### About `def` vs `async def`
    
    The same as with SQLAlchemy, we are not doing something like:
    
    ```Python
    user = await models.User.select().first()
    ```
    
    ...but instead we are using:
    
    ```Python
    user = models.User.select().first()
    ```
    
    So, again, we should declare the *path operation functions* and the dependency without `async def`, just with a normal `def`, as:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  2. docs/em/docs/how-to/sql-databases-peewee.md

    {!../../../docs_src/sql_databases_peewee/sql_app/main.py!}
    ```
    
    ### 🔃 `def` 🆚 `async def`
    
    🎏 ⏎ī¸ 🇸🇲, đŸ‘Ĩ đŸšĢ 🔨 đŸ•ŗ 💖:
    
    ```Python
    user = await models.User.select().first()
    ```
    
    ...✋ī¸ ↩ī¸ đŸ‘Ĩ ⚙ī¸:
    
    ```Python
    user = models.User.select().first()
    ```
    
    , 🔄, đŸ‘Ĩ 🔜 đŸ“Ŗ *➡ 🛠ī¸ đŸ”ĸ* & 🔗 đŸĩ `async def`, ⏎ī¸ 😐 `def`,:
    
    ```Python hl_lines="2"
    # Something goes here
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 19.2K bytes
    - Viewed (0)
Back to top