Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Case (0.12 sec)

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

    {!../../../docs_src/sql_databases/sql_app/database.py!}
    ```
    
    ### 创建一个`Base`类
    
    现在我们将使用`declarative_base()`返回一个类。
    
    稍后我们将用这个类继承,来创建每个数据库模型或类(ORM 模型):
    
    ```Python hl_lines="13"
    {!../../../docs_src/sql_databases/sql_app/database.py!}
    ```
    
    ## 创建数据库模型
    
    现在让我们看看文件`sql_app/models.py`。
    
    ### 用`Base`类来创建 SQLAlchemy 模型
    
    我们将使用我们之前创建的`Base`类来创建 SQLAlchemy 模型。
    
    !!! tip
    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

    ```
    
    ### ✍ `Base` 🎓
    
    🔜 👥 🔜 ⚙️ 🔢 `declarative_base()` 👈 📨 🎓.
    
    ⏪ 👥 🔜 😖 ⚪️➡️ 👉 🎓 ✍ 🔠 💽 🏷 ⚖️ 🎓 (🐜 🏷):
    
    ```Python hl_lines="13"
    {!../../../docs_src/sql_databases/sql_app/database.py!}
    ```
    
    ## ✍ 💽 🏷
    
    ➡️ 🔜 👀 📁 `sql_app/models.py`.
    
    ### ✍ 🇸🇲 🏷 ⚪️➡️ `Base` 🎓
    
    👥 🔜 ⚙️ 👉 `Base` 🎓 👥 ✍ ⏭ ✍ 🇸🇲 🏷.
    
    !!! tip
    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

    To create the `SessionLocal` class, use the function `sessionmaker`:
    
    ```Python hl_lines="11"
    {!../../../docs_src/sql_databases/sql_app/database.py!}
    ```
    
    ### Create a `Base` class
    
    Now we will use the function `declarative_base()` that returns a class.
    
    Later we will inherit from this class to create each of the database models or classes (the ORM models):
    
    ```Python hl_lines="13"
    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