Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for 55 (0.11 sec)

  1. docs/en/docs/how-to/async-sql-encode-databases.md

    ```Python hl_lines="42  45-47  50-52"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    ## Read notes
    
    Create the *path operation function* to read notes:
    
    ```Python hl_lines="55-58"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    !!! note
        Notice that as we communicate with the database using `await`, the *path operation function* is declared with `async`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/security/simple-oauth2.md

    === "🐍 3️⃣.6️⃣ & 🔛"
    
        ```Python hl_lines="58-66  69-72  90"
        {!> ../../../docs_src/security/tutorial003.py!}
        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="55-64  67-70  88"
        {!> ../../../docs_src/security/tutorial003_py310.py!}
        ```
    
    !!! info
        🌖 🎚 `WWW-Authenticate` ⏮️ 💲 `Bearer` 👥 🛬 📥 🍕 🔌.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  3. docs/en/docs/img/deployment/https/https.drawio

                    </mxCell>
                    <mxCell id="56" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=3;" edge="1" parent="1" source="55" target="49">
                        <mxGeometry relative="1" as="geometry"/>
                    </mxCell>
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 25.7K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/sql-databases.md

        ```Python hl_lines="21-26  29-32  35-40  43-47  50-53"
        {!> ../../../docs_src/sql_databases/sql_app_py39/main.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="23-28  31-34  37-42  45-49  52-55"
        {!> ../../../docs_src/sql_databases/sql_app/main.py!}
        ```
    
    我们在依赖项中的每个请求之前利用`yield`创建数据库会话,然后关闭它。
    
    所以我们就可以在*路径操作函数*中创建需要的依赖,就能直接获取会话。
    
    这样,我们就可以直接从*路径操作函数*内部调用`crud.get_user`并使用该会话,来进行对数据库操作。
    
    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)
  5. docs/zh/docs/advanced/async-sql-databases.md

    ## 连接与断开
    
    * 创建 `FastAPI` 应用
    * 创建事件处理器,执行数据库连接与断开操作
    
    ```Python hl_lines="42  45-47  50-52"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    ## 读取笔记
    
    创建读取笔记的*路径操作函数*:
    
    ```Python hl_lines="55-58"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    !!! Note "笔记"
    
        注意,本例与数据库通信时使用 `await`,因此*路径操作函数*要声明为异步函数(`asnyc`)。
    
    ### 注意 `response_model=List[Note]`
    
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Mar 30 22:44:40 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  6. docs/em/docs/advanced/async-sql-databases.md

    * ✍ 👆 `FastAPI` 🈸.
    * ✍ 🎉 🐕‍🦺 🔗 &amp; 🔌 ⚪️➡️ 💽.
    
    ```Python hl_lines="42  45-47  50-52"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    ## ✍ 🗒
    
    ✍ *➡ 🛠️ 🔢* ✍ 🗒:
    
    ```Python hl_lines="55-58"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    !!! Note
        👀 👈 👥 🔗 ⏮️ 💽 ⚙️ `await`, *➡ 🛠️ 🔢* 📣 ⏮️ `async`.
    
    ### 👀 `response_model=List[Note]`
    
    ⚫️ ⚙️ `typing.List`.
    
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/sql-databases.md

    ### ✍ 👆 **FastAPI** *➡ 🛠️*
    
    🔜, 😒, 📥 🐩 **FastAPI** *➡ 🛠️* 📟.
    
    === "🐍 3️⃣.6️⃣ &amp; 🔛"
    
        ```Python hl_lines="23-28  31-34  37-42  45-49  52-55"
        {!> ../../../docs_src/sql_databases/sql_app/main.py!}
        ```
    
    === "🐍 3️⃣.9️⃣ &amp; 🔛"
    
        ```Python hl_lines="21-26  29-32  35-40  43-47  50-53"
    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)
  8. docs/ko/docs/tutorial/security/simple-oauth2.md

    === "파이썬 3.7 이상"
    
        ```Python hl_lines="58-66  69-72  90"
        {!> ../../../docs_src/security/tutorial003.py!}
        ```
    
    === "파이썬 3.10 이상"
    
        ```Python hl_lines="55-64  67-70  88"
        {!> ../../../docs_src/security/tutorial003_py310.py!}
        ```
    
    !!! 정보
        여기서 반환하는 값이 `Bearer`인 추가 헤더 `WWW-Authenticate`도 사양의 일부입니다.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 22:37:23 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  9. docs/en/docs/img/deployment/https/https08.drawio

                        <mxGeometry relative="1" as="geometry">
                            <mxPoint x="300" y="350" as="sourcePoint"/>
                            <mxPoint x="55" y="330" as="targetPoint"/>
                            <Array as="points">
                                <mxPoint x="160" y="340"/>
                                <mxPoint x="160" y="340"/>
                            </Array>
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 20.9K bytes
    - Viewed (0)
  10. docs/en/docs/img/deployment/https/https04.drawio

                        <mxGeometry relative="1" as="geometry">
                            <mxPoint x="300" y="350" as="sourcePoint"/>
                            <mxPoint x="55" y="330" as="targetPoint"/>
                            <Array as="points">
                                <mxPoint x="160" y="340"/>
                                <mxPoint x="160" y="340"/>
                            </Array>
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 14K bytes
    - Viewed (0)
Back to top