Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for get_b (0.06 sec)

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

    ```
    
    โคด๏ธ ๐Ÿ‘ฅ ๐Ÿ”œ ๐Ÿ“ฃ *โžก ๐Ÿ› ๏ธ ๐Ÿ”ข* & ๐Ÿ”— ๐Ÿต `async def`, โฎ๏ธ ๐Ÿ˜ `def`,:
    
    ```Python hl_lines="2"
    @app.get("/users/{user_id}", response_model=schemas.User)
    def read_user(user_id: int, db: Session = Depends(get_db)):
        db_user = crud.get_user(db, user_id=user_id)
        ...
    ```
    
    /// info
    
    ๐Ÿšฅ ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ”— ๐Ÿ‘† ๐Ÿ”— ๐Ÿ’ฝ ๐Ÿ”, ๐Ÿ‘€ [๐Ÿ” ๐Ÿ—„ (๐Ÿ”—) ๐Ÿ’ฝ](../advanced/async-sql-databases.md){.internal-link target=_blank}.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 25K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/sql-databases.md

    ```
    
    ็„ถๅŽๆˆ‘ไปฌๅบ”่ฏฅๅฃฐๆ˜Ž*่ทฏๅพ„ๆ“ไฝœๅ‡ฝๆ•ฐ*ๅ’Œไธๅธฆ ็š„ไพ่ต–ๅ…ณ็ณป`async def`๏ผŒๅช้œ€ไฝฟ็”จๆ™ฎ้€š็š„`def`๏ผŒๅฆ‚ไธ‹๏ผš
    
    ```Python hl_lines="2"
    @app.get("/users/{user_id}", response_model=schemas.User)
    def read_user(user_id: int, db: Session = Depends(get_db)):
        db_user = crud.get_user(db, user_id=user_id)
        ...
    ```
    
    /// info
    
    ๅฆ‚ๆžœๆ‚จ้œ€่ฆๅผ‚ๆญฅ่ฟžๆŽฅๅˆฐๅ…ณ็ณปๆ•ฐๆฎๅบ“๏ผŒ่ฏทๅ‚้˜…[Async SQL (Relational) Databases](https://fastapi.tiangolo.com/zh/advanced/async-sql-databases/)
    
    ///
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 27.1K bytes
    - Viewed (0)
Back to top