- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 29 for SQLAlchemy (0.06 seconds)
-
docs/ja/docs/tutorial/sql-databases.md
# SQL(リレーショナル)データベース { #sql-relational-databases } FastAPI は SQL(リレーショナル)データベースの使用を必須にはしません。必要であれば、任意のデータベースを使用できます。 ここでは [SQLModel](https://sqlmodel.tiangolo.com/) を使った例を見ていきます。 SQLModel は [SQLAlchemy](https://www.sqlalchemy.org/) と Pydantic の上に構築されています。FastAPI と同じ作者により、SQL データベースを使う必要がある FastAPI アプリに最適になるように作られています。 /// tip | 豆知識Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 18K bytes - Click Count (0) -
docs/en/docs/tutorial/sql-databases.md
**FastAPI** doesn't require you to use a SQL (relational) database. But you can use **any database** that you want. Here we'll see an example using [SQLModel](https://sqlmodel.tiangolo.com/). **SQLModel** is built on top of [SQLAlchemy](https://www.sqlalchemy.org/) and Pydantic. It was made by the same author of **FastAPI** to be the perfect match for FastAPI applications that need to use **SQL databases**. /// tip
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 07 09:29:03 GMT 2026 - 15.3K bytes - Click Count (0) -
fastapi/.agents/skills/fastapi/references/other-tools.md
``` ## SQLModel for SQL databases When working with SQL databases, prefer using SQLModel as it is integrated with Pydantic and will allow declaring data validation with the same models. Prefer it over SQLAlchemy. ## HTTPX Use HTTPX for handling HTTP communication (e.g. with other APIs). It support sync and async usage.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 10:05:57 GMT 2026 - 1.5K bytes - Click Count (0) -
fastapi/encoders.py
bool, Doc( """ Exclude from the output any fields that start with the name `_sa`. This is mainly a hack for compatibility with SQLAlchemy objects, they store internal SQLAlchemy-specific state in attributes named with `_sa`, and those objects can't (and shouldn't be) serialized to JSON. """ ), ] = True, ) -> Any: """Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 10.9K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/sql-databases.md
SQLModel 建立在 [SQLAlchemy](https://www.sqlalchemy.org/) 與 Pydantic 之上。它由 FastAPI 的作者開發,非常適合需要使用 SQL 資料庫的 FastAPI 應用。 /// tip | 提示 你可以使用任何你想用的 SQL 或 NoSQL 資料庫函式庫(有時稱為 <abbr title="Object Relational Mapper - 物件關聯對應器:一個用來描述某些類別代表 SQL 資料表且其實例代表資料表中資料列的函式庫的術語">"ORMs"</abbr>),FastAPI 不會強迫你使用特定工具。😎 /// 因為 SQLModel 建立在 SQLAlchemy 之上,你可以輕鬆使用 SQLAlchemy 所支援的任何資料庫(因此 SQLModel 也支援),例如: * PostgreSQL * MySQL
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 14.8K bytes - Click Count (0) -
docs/zh/docs/tutorial/sql-databases.md
**SQLModel** 基于 [SQLAlchemy](https://www.sqlalchemy.org/) 和 Pydantic 构建。它由 **FastAPI** 的同一作者制作,旨在完美匹配需要使用**SQL 数据库**的 FastAPI 应用程序。 /// tip | 提示 你可以使用任意其他你想要的 SQL 或 NoSQL 数据库库(在某些情况下称为 <abbr title="Object Relational Mapper - 对象关系映射器: 一个术语,用来指代一种库,其中某些类表示 SQL 表,这些类的实例表示这些表中的行">"ORMs"</abbr>),FastAPI 不会强迫你使用任何东西。😎 /// 由于 SQLModel 基于 SQLAlchemy,因此你可以轻松使用任何由 SQLAlchemy **支持的数据库**(这也让它们被 SQLModel 支持),例如: * PostgreSQL
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 15.4K bytes - Click Count (0) -
docs/en/docs/advanced/advanced-dependencies.md
But as `generate_stream()` doesn't use the database session, it is not really necessary to keep the session open while sending the response. If you have this specific use case using SQLModel (or SQLAlchemy), you could explicitly close the session after you don't need it anymore: {* ../../docs_src/dependencies/tutorial014_an_py310.py ln[24:28] hl[28] *}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 9K bytes - Click Count (0) -
docs/ja/docs/advanced/advanced-dependencies.md
...の部分で定義されており、遅いデータ送信が終わった後に実行されます: {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[30:38] hl[31:33] *} しかし、`generate_stream()` はデータベースセッションを使わないため、レスポンス送信中にセッションを開いたままにしておく必要は実際にはありません。 SQLModel(または SQLAlchemy)でこの特定のユースケースがある場合は、不要になった時点でセッションを明示的にクローズできます: {* ../../docs_src/dependencies/tutorial014_an_py310.py ln[24:28] hl[28] *} このようにすると、セッションはデータベース接続を解放するため、他のリクエストがそれを使えるようになります。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 11.4K bytes - Click Count (0) -
fastapi/.agents/skills/fastapi/SKILL.md
* Asyncer for handling async and await, concurrency, mixing async and blocking code, prefer it over AnyIO or asyncio. * SQLModel for working with SQL databases, prefer it over SQLAlchemy. * HTTPX for interacting with HTTP (other APIs), prefer it over Requests. ## Do not use Pydantic RootModels
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 10:05:57 GMT 2026 - 10.1K bytes - Click Count (0) -
docs/pt/docs/tutorial/sql-databases.md
Aqui veremos um exemplo usando [SQLModel](https://sqlmodel.tiangolo.com/). **SQLModel** é construído sobre [SQLAlchemy](https://www.sqlalchemy.org/) e Pydantic. Ele foi criado pelo mesmo autor do **FastAPI** para ser o par perfeito para aplicações **FastAPI** que precisam usar **bancos de dados SQL**. /// tip | Dica
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 16.5K bytes - Click Count (0)