Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for sql (1.03 sec)

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

    ## 审查所有文件
    
    最后回顾整个案例,您应该有一个名为的目录`my_super_project`,其中包含一个名为`sql_app`。
    
    `sql_app`中应该有以下文件:
    
    * `sql_app/__init__.py`:这是一个空文件。
    
    * `sql_app/database.py`:
    
    ```Python
    {!../../../docs_src/sql_databases/sql_app/database.py!}
    ```
    
    * `sql_app/models.py`:
    
    ```Python
    {!../../../docs_src/sql_databases/sql_app/models.py!}
    ```
    
    * `sql_app/schemas.py`:
    
    === "Python 3.10+"
    
        ```Python
    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

     💭 👆 🔜 ✔️ 📁 📛 `my_super_project` 👈 🔌 🎧-📁 🤙 `sql_app`.
    
    `sql_app` 🔜 ✔️ 📄 📁:
    
    * `sql_app/__init__.py`: 🛁 📁.
    
    * `sql_app/database.py`:
    
    ```Python
    {!../../../docs_src/sql_databases/sql_app/database.py!}
    ```
    
    * `sql_app/models.py`:
    
    ```Python
    {!../../../docs_src/sql_databases/sql_app/models.py!}
    ```
    
    * `sql_app/schemas.py`:
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    
    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/how-to/sql-databases-peewee.md

    `sql_app` should have the following files:
    
    * `sql_app/__init__.py`: is an empty file.
    
    * `sql_app/database.py`:
    
    ```Python
    {!../../../docs_src/sql_databases_peewee/sql_app/database.py!}
    ```
    
    * `sql_app/models.py`:
    
    ```Python
    {!../../../docs_src/sql_databases_peewee/sql_app/models.py!}
    ```
    
    * `sql_app/schemas.py`:
    
    ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  4. docs/em/docs/advanced/async-sql-databases.md

    ```Python hl_lines="4  14  16-22"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    !!! tip
        👀 👈 🌐 👉 📟 😁 🇸🇲 🐚.
    
        `databases` 🚫 🔨 🕳 📥.
    
    ## 🗄 & ⚒ 🆙 `databases`
    
    * 🗄 `databases`.
    * ✍ `DATABASE_URL`.
    * ✍ `database` 🎚.
    
    ```Python hl_lines="3  9  12"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    !!! tip
    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)
  5. docs/en/docs/tutorial/sql-databases.md

    `sql_app` should have the following files:
    
    * `sql_app/__init__.py`: is an empty file.
    
    * `sql_app/database.py`:
    
    ```Python
    {!../../../docs_src/sql_databases/sql_app/database.py!}
    ```
    
    * `sql_app/models.py`:
    
    ```Python
    {!../../../docs_src/sql_databases/sql_app/models.py!}
    ```
    
    * `sql_app/schemas.py`:
    
    === "Python 3.10+"
    
    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)
  6. docs_src/sql_databases/sql_app_py310/tests/test_sql_app.py

    Sebastián Ramírez <******@****.***> 1641564691 +0100
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_sql_databases/test_sql_databases.py

        tmp_path = tmp_path_factory.mktemp("data")
        cwd = os.getcwd()
        os.chdir(tmp_path)
        test_db = Path("./sql_app.db")
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
        # Import while creating the client to create the DB after starting the test session
        from docs_src.sql_databases.sql_app import main
    
        # Ensure import side effects are re-executed
        importlib.reload(main)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.1K bytes
    - Viewed (0)
  8. docs/en/docs/how-to/async-sql-encode-databases.md

    Later, for your production application, you might want to use a database server like **PostgreSQL**.
    
    !!! tip
        You could adopt ideas from the section about SQLAlchemy ORM ([SQL (Relational) Databases](../tutorial/sql-databases.md){.internal-link target=_blank}), like using utility functions to perform operations in the database, independent of your **FastAPI** code.
    
    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)
  9. docs_src/sql_databases/sql_app_py39/tests/test_sql_app.py

    Sebastián Ramírez <******@****.***> 1641564691 +0100
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_sql_databases/test_sql_databases_middleware.py

    from ...utils import needs_pydanticv1
    
    
    @pytest.fixture(scope="module")
    def client():
        test_db = Path("./sql_app.db")
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
        # Import while creating the client to create the DB after starting the test session
        from docs_src.sql_databases.sql_app import alt_main
    
        # Ensure import side effects are re-executed
        importlib.reload(alt_main)
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.3K bytes
    - Viewed (0)
Back to top