-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontext7.json
More file actions
16 lines (16 loc) · 941 Bytes
/
Copy pathcontext7.json
File metadata and controls
16 lines (16 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
"$schema": "https://context7.com/schema/context7.json",
"url": "https://context7.com/hadrien/fastsqla",
"public_key": "pk_HGTiXpaLrQ2YW61qLOKbF",
"projectTitle": "FastSQLA",
"description": "Async SQLAlchemy sessions and pagination for FastAPI, with optional SQLModel support.",
"folders": ["docs", "plugin/fastsqla/skills"],
"excludeFiles": ["CHANGELOG.md"],
"rules": [
"Configure FastAPI with fastsqla.lifespan or new_lifespan(); do not construct engines or sessions manually.",
"Declare fastsqla.Session as an endpoint parameter; FastSQLA commits on success and rolls back on exceptions.",
"Use fastsqla.open_session() outside request handlers, and only while the application lifespan is active.",
"Use fastsqla.Paginate and Page[T] for list endpoints; call await paginate(select(...)).",
"Install FastSQLA[sqlmodel] when using SQLModel; FastSQLA selects SQLModel's AsyncSession automatically."
]
}