- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 55 for sqlmodel (0.05 seconds)
-
docs/en/docs/how-to/testing-database.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 393 bytes - Click Count (0) -
docs_src/sql_databases/tutorial001_py310.py
from fastapi import Depends, FastAPI, HTTPException, Query from sqlmodel import Field, Session, SQLModel, create_engine, select class Hero(SQLModel, table=True): id: int | None = Field(default=None, primary_key=True) name: str = Field(index=True) age: int | None = Field(default=None, index=True) secret_name: str sqlite_file_name = "database.db" sqlite_url = f"sqlite:///{sqlite_file_name}"
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Oct 09 19:44:42 GMT 2024 - 1.7K bytes - Click Count (0) -
docs_src/sql_databases/tutorial001_an_py310.py
from typing import Annotated from fastapi import Depends, FastAPI, HTTPException, Query from sqlmodel import Field, Session, SQLModel, create_engine, select class Hero(SQLModel, table=True): id: int | None = Field(default=None, primary_key=True) name: str = Field(index=True) age: int | None = Field(default=None, index=True) secret_name: str sqlite_file_name = "database.db" sqlite_url = f"sqlite:///{sqlite_file_name}"
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Oct 09 19:44:42 GMT 2024 - 1.7K bytes - Click Count (0) -
docs_src/sql_databases/tutorial002_py310.py
from fastapi import Depends, FastAPI, HTTPException, Query from sqlmodel import Field, Session, SQLModel, create_engine, select class HeroBase(SQLModel): name: str = Field(index=True) age: int | None = Field(default=None, index=True) class Hero(HeroBase, table=True): id: int | None = Field(default=None, primary_key=True) secret_name: str class HeroPublic(HeroBase): id: int class HeroCreate(HeroBase):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Oct 09 19:44:42 GMT 2024 - 2.5K bytes - Click Count (0) -
docs_src/dependencies/tutorial014_an_py310.py
import time from typing import Annotated from fastapi import Depends, FastAPI, HTTPException from fastapi.responses import StreamingResponse from sqlmodel import Field, Session, SQLModel, create_engine engine = create_engine("postgresql+psycopg://postgres:postgres@localhost/db") class User(SQLModel, table=True): id: int | None = Field(default=None, primary_key=True) name: str app = FastAPI() def get_session():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Sep 29 03:29:38 GMT 2025 - 957 bytes - Click Count (0) -
docs_src/sql_databases/tutorial002_an_py310.py
from typing import Annotated from fastapi import Depends, FastAPI, HTTPException, Query from sqlmodel import Field, Session, SQLModel, create_engine, select class HeroBase(SQLModel): name: str = Field(index=True) age: int | None = Field(default=None, index=True) class Hero(HeroBase, table=True): id: int | None = Field(default=None, primary_key=True) secret_name: str class HeroPublic(HeroBase): id: int
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Oct 09 19:44:42 GMT 2024 - 2.5K bytes - Click Count (0) -
docs_src/dependencies/tutorial013_an_py310.py
import time from typing import Annotated from fastapi import Depends, FastAPI, HTTPException from fastapi.responses import StreamingResponse from sqlmodel import Field, Session, SQLModel, create_engine engine = create_engine("postgresql+psycopg://postgres:postgres@localhost/db") class User(SQLModel, table=True): id: int | None = Field(default=None, primary_key=True) name: str app = FastAPI() def get_session():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Sep 29 03:29:38 GMT 2025 - 937 bytes - Click Count (0) -
fastapi/.agents/skills/fastapi/references/other-tools.md
return f"Hello {name}" @app.get("/items/") def read_items(): result = syncify(do_async_work)(name="World") return {"message": result} ``` ## 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. ## HTTPXCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 10:05:57 GMT 2026 - 1.5K bytes - Click Count (0) -
docs/ko/docs/project-generation.md
## Full Stack FastAPI ํ ํ๋ฆฟ - ๊ธฐ์ ์คํ๊ณผ ๊ธฐ๋ฅ๋ค { #full-stack-fastapi-template-technology-stack-and-features } - โก Python ๋ฐฑ์๋ API๋ฅผ ์ํ [**FastAPI**](https://fastapi.tiangolo.com/ko). - ๐งฐ Python SQL ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ํธ์์ฉ์ ์ํ [SQLModel](https://sqlmodel.tiangolo.com) (ORM). - ๐ FastAPI์ ์ํด ์ฌ์ฉ๋๋, ๋ฐ์ดํฐ ๊ฒ์ฆ๊ณผ ์ค์ ๊ด๋ฆฌ๋ฅผ ์ํ [Pydantic](https://docs.pydantic.dev). - ๐พ SQL ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ก์์ [PostgreSQL](https://www.postgresql.org). - ๐ ํ๋ก ํธ์๋๋ฅผ ์ํ [React](https://react.dev).Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 2.3K bytes - Click Count (0) -
docs/zh-hant/docs/project-generation.md
## ๅ จ็ซฏ FastAPI ็ฏๆฌ - ๆ่กๅ ็่ๅ่ฝ { #full-stack-fastapi-template-technology-stack-and-features } - โก [**FastAPI**](https://fastapi.tiangolo.com/zh-hant) ไฝ็บ Python ๅพ็ซฏ APIใ - ๐งฐ [SQLModel](https://sqlmodel.tiangolo.com) ไฝ็บ Python ่ SQL ่ณๆๅบซไบๅ๏ผORM๏ผใ - ๐ [Pydantic](https://docs.pydantic.dev)๏ผ็ฑ FastAPI ไฝฟ็จ๏ผ็จๆผ่ณๆ้ฉ่ญ่่จญๅฎ็ฎก็ใ - ๐พ [PostgreSQL](https://www.postgresql.org) ไฝ็บ SQL ่ณๆๅบซใ - ๐ [React](https://react.dev) ไฝ็บๅ็ซฏใCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 1.8K bytes - Click Count (0)