Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 53 for Commit (0.32 sec)

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

    !!! tip
        通过创建仅专用于与数据库交互(获取用户或项目)的函数,独立于*路径操作函数*,您可以更轻松地在多个部分中重用它们,并为它们添加单元测试。
    
    ### 创建数据
    
    现在创建实用程序函数来创建数据。
    
    它的步骤是:
    
    * 使用您的数据创建一个 SQLAlchemy 模型*实例。*
    * 使用`add`来将该实例对象添加到您的数据库。
    * 使用`commit`来对数据库的事务提交(以便保存它们)。
    * 使用`refresh`来刷新您的数据库实例(以便它包含来自数据库的任何新数据,例如生成的 ID)。
    
    ```Python hl_lines="18-24  31-36"
    {!../../../docs_src/sql_databases/sql_app/crud.py!}
    ```
    
    !!! 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_src/sql_databases/sql_app/crud.py

        db.add(db_user)
        db.commit()
        db.refresh(db_user)
        return db_user
    
    
    def get_items(db: Session, skip: int = 0, limit: int = 100):
        return db.query(models.Item).offset(skip).limit(limit).all()
    
    
    def create_user_item(db: Session, item: schemas.ItemCreate, user_id: int):
        db_item = models.Item(**item.dict(), owner_id=user_id)
        db.add(db_item)
        db.commit()
        db.refresh(db_item)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 1K bytes
    - Viewed (0)
  3. .github/workflows/smokeshow.yml

          - run: pip install smokeshow
    
          - uses: dawidd6/action-download-artifact@v3.1.4
            with:
              github_token: ${{ secrets.FASTAPI_SMOKESHOW_DOWNLOAD_ARTIFACTS }}
              workflow: test.yml
              commit: ${{ github.event.workflow_run.head_sha }}
    
          - run: smokeshow upload coverage-html
            env:
              SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Coverage {coverage-percentage}
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 19 01:33:28 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  4. docs/en/docs/release-notes.md

    * ⬆ [pre-commit.ci] pre-commit autoupdate. PR [#5536](https://github.com/tiangolo/fastapi/pull/5536) by [@pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci).
    * 🐛 Fix internal Trio test warnings. PR [#5547](https://github.com/tiangolo/fastapi/pull/5547) by [@samuelcolvin](https://github.com/samuelcolvin).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  5. pyproject.toml

        # TODO remove pytest-cov
        'ignore::pytest.PytestDeprecationWarning:pytest_cov',
        # TODO: remove after upgrading SQLAlchemy to a version that includes the following changes
        # https://github.com/sqlalchemy/sqlalchemy/commit/59521abcc0676e936b31a523bd968fc157fef0c2
        'ignore:datetime\.datetime\.utcfromtimestamp\(\) is deprecated and scheduled for removal in a future version\..*:DeprecationWarning:sqlalchemy',
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  6. docs/en/docs/help-fastapi.md

    ### Don't worry about style
    
    * Don't worry too much about things like commit message styles, I will squash and merge customizing the commit manually.
    
    * Also don't worry about style rules, there are already automatized tools checking that.
    
    And if there's any other style or consistency need, I'll ask directly for that, or I'll add commits on top with the needed changes.
    
    ### Check the code
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/sql-databases.md

    ### ✍ 💽
    
    🔜 ✍ 🚙 🔢 ✍ 💽.
    
    🔁:
    
    * ✍ 🇸🇲 🏷 *👐* ⏮️ 👆 📊.
    * `add` 👈 👐 🎚 👆 💽 🎉.
    * `commit` 🔀 💽 (👈 👫 🖊).
    * `refresh` 👆 👐 (👈 ⚫️ 🔌 🙆 🆕 📊 ⚪️➡️ 💽, 💖 🏗 🆔).
    
    ```Python hl_lines="18-24  31-36"
    {!../../../docs_src/sql_databases/sql_app/crud.py!}
    ```
    
    !!! 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)
  8. docs/de/docs/help-fastapi.md

    * Machen Sie sich nicht zu viele Gedanken über Dinge wie den Stil von Commit-Nachrichten, ich werde den Commit manuell zusammenführen und anpassen.
    
    * Machen Sie sich auch keine Sorgen über Stilregeln, es gibt bereits automatisierte Tools, die das überprüfen.
    
    Und wenn es irgendeinen anderen Stil- oder Konsistenz-Bedarf gibt, bitte ich direkt darum oder füge zusätzliche Commits mit den erforderlichen Änderungen hinzu.
    
    ### Den Code überprüfen
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:29:57 GMT 2024
    - 16K bytes
    - Viewed (0)
  9. docs_src/path_operation_configuration/tutorial005.py

        """
        Create an item with all the information:
    
        - **name**: each item must have a name
        - **description**: a long description
        - **price**: required
        - **tax**: if the item doesn't have tax, you can omit this
        - **tags**: a set of unique tag strings for this item
        """
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 741 bytes
    - Viewed (0)
  10. docs/en/docs/advanced/middleware.md

    * `allowed_hosts` - A list of domain names that should be allowed as hostnames. Wildcard domains such as `*.example.com` are supported for matching subdomains. To allow any hostname either use `allowed_hosts=["*"]` or omit the middleware.
    
    If an incoming request does not validate correctly then a `400` response will be sent.
    
    ## `GZipMiddleware`
    
    Handles GZip responses for any request that includes `"gzip"` in the `Accept-Encoding` header.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 10 18:27:10 GMT 2023
    - 4K bytes
    - Viewed (0)
Back to top