Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for column (0.14 sec)

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

        {!> ../../../docs_src/sql_databases/sql_app/schemas.py!}
        ```
    
    #### SQLAlchemy 风格和 Pydantic 风格
    
    请注意,SQLAlchemy*模型*使用 `=`来定义属性,并将类型作为参数传递给`Column`,例如:
    
    ```Python
    name = Column(String)
    ```
    
    虽然 Pydantic*模型*使用`:` 声明类型,但新的类型注释语法/类型提示是:
    
    ```Python
    name: str
    ```
    
    请牢记这一点,这样您在使用`:`还是`=`时就不会感到困惑。
    
    ### 创建用于读取/返回的Pydantic*模型/模式*
    
    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

        {!> ../../../docs_src/sql_databases/sql_app_py310/schemas.py!}
        ```
    
    #### 🇸🇲 👗 & Pydantic 👗
    
    👀 👈 🇸🇲 *🏷* 🔬 🔢 ⚙️ `=`, & 🚶‍♀️ 🆎 🔢 `Column`, 💖:
    
    ```Python
    name = Column(String)
    ```
    
    ⏪ Pydantic *🏷* 📣 🆎 ⚙️ `:`, 🆕 🆎 ✍ ❕/🆎 🔑:
    
    ```Python
    name: str
    ```
    
    ✔️ ⚫️ 🤯, 👆 🚫 🤚 😕 🕐❔ ⚙️ `=` & `:` ⏮️ 👫.
    
    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

    The `__tablename__` attribute tells SQLAlchemy the name of the table to use in the database for each of these models.
    
    ### Create model attributes/columns
    
    Now create all the model (class) attributes.
    
    Each of these attributes represents a column in its corresponding database table.
    
    We use `Column` from SQLAlchemy as the default value.
    
    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