- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for sql (0.13 sec)
-
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) -
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) -
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) -
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) -
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
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) -
docs/zh/docs/advanced/async-sql-databases.md
# 异步 SQL 关系型数据库 **FastAPI** 使用 <a href="https://github.com/encode/databases" class="external-link" target="_blank">`encode/databases`</a> 为连接数据库提供异步支持(`async` 与 `await`)。 `databases` 兼容以下数据库: * PostgreSQL * MySQL * SQLite 本章示例使用 **SQLite**,它使用的是单文件,且 Python 内置集成了 SQLite,因此,可以直接复制并运行本章示例。 生产环境下,则要使用 **PostgreSQL** 等数据库服务器。 !!! tip "提示"
Plain Text - Registered: Sun Mar 31 07:19:09 GMT 2024 - Last Modified: Sat Mar 30 22:44:40 GMT 2024 - 4.3K bytes - Viewed (0) -
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) -
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) -
tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py310.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_py310 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.5K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_sql_databases_py310.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_py310 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.5K bytes - Viewed (0)