Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for database (0.2 sec)

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

    ---> 100%
    ```
    
    </div>
    
    ## 创建 SQLAlchemy 部件
    
    让我们转到文件`sql_app/database.py`。
    
    ### 导入 SQLAlchemy 部件
    
    ```Python hl_lines="1-3"
    {!../../../docs_src/sql_databases/sql_app/database.py!}
    ```
    
    ### 为 SQLAlchemy 定义数据库 URL地址
    
    ```Python hl_lines="5-6"
    {!../../../docs_src/sql_databases/sql_app/database.py!}
    ```
    
    在这个例子中,我们正在“连接”到一个 SQLite 数据库(用 SQLite 数据库打开一个文件)。
    
    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

    $ pip install sqlalchemy
    
    ---> 100%
    ```
    
    </div>
    
    ## ✍ 🇸🇲 🍕
    
    ➡️ 🔗 📁 `sql_app/database.py`.
    
    ### 🗄 🇸🇲 🍕
    
    ```Python hl_lines="1-3"
    {!../../../docs_src/sql_databases/sql_app/database.py!}
    ```
    
    ### ✍ 💽 📛 🇸🇲
    
    ```Python hl_lines="5-6"
    {!../../../docs_src/sql_databases/sql_app/database.py!}
    ```
    
    👉 🖼, 👥 "🔗" 🗄 💽 (📂 📁 ⏮️ 🗄 💽).
    
    📁 🔜 🔎 🎏 📁 📁 `sql_app.db`.
    
    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/security/oauth2-jwt.md

        So, you would be able to, for example, share the same data from a Django application in a database with a FastAPI application. Or gradually migrate a Django application using the same database.
    
        And your users would be able to login from your Django app or from your **FastAPI** app, at the same time.
    
    ## Hash and verify the passwords
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13K bytes
    - Viewed (0)
  4. docs/en/docs/alternatives.md

    It's the most popular Python framework and is widely trusted. It is used to build systems like Instagram.
    
    It's relatively tightly coupled with relational databases (like MySQL or PostgreSQL), so, having a NoSQL database (like Couchbase, MongoDB, Cassandra, etc) as the main store engine is not very easy.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/response-model.md

    For example, you could want to **return a dictionary** or a database object, but **declare it as a Pydantic model**. This way the Pydantic model would do all the data documentation, validation, etc. for the object that you returned (e.g. a dictionary or database object).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/sql-databases.md

    Let's refer to the file `sql_app/database.py`.
    
    ### Import the SQLAlchemy parts
    
    ```Python hl_lines="1-3"
    {!../../../docs_src/sql_databases/sql_app/database.py!}
    ```
    
    ### Create a database URL for SQLAlchemy
    
    ```Python hl_lines="5-6"
    {!../../../docs_src/sql_databases/sql_app/database.py!}
    ```
    
    In this example, we are "connecting" to a SQLite database (opening a file with the SQLite database).
    
    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)
  7. docs/en/docs/how-to/sql-databases-peewee.md

    * `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
    {!../../../docs_src/sql_databases_peewee/sql_app/schemas.py!}
    ```
    
    * `sql_app/crud.py`:
    
    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 (1)
  8. docs/em/docs/how-to/sql-databases-peewee.md

    `sql_app` 🔜 ✔️ 📄 📁:
    
    * `sql_app/__init__.py`: 🛁 📁.
    
    * `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
    {!../../../docs_src/sql_databases_peewee/sql_app/schemas.py!}
    ```
    
    * `sql_app/crud.py`:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 19.2K bytes
    - Viewed (0)
  9. docs/en/docs/deployment/concepts.md

    To achieve this, you will normally have a **separate program** that would make sure your application is run on startup. And in many cases, it would also make sure other components or applications are also run, for example, a database.
    
    ### Example Tools to Run at Startup
    
    Some examples of the tools that can do this job are:
    
    * Docker
    * Kubernetes
    * Docker Compose
    * Docker in Swarm Mode
    * Systemd
    * Supervisor
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 18K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    use internally only data that doesn't depend on the resources of dependencies with `yield`.
    
    For example, instead of using the same database session, you would create a new database session inside of the background task, and you would obtain the objects from the database using this new session. And then instead of passing the object from the database as a parameter to the background task function, you would pass the ID of that object and then obtain the object again inside the background...
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 14.1K bytes
    - Viewed (0)
Back to top