This is a project template which uses FastAPI, Pydantic 2.0, Alembic and async SQLModel as ORM. It shows a complete async CRUD using authentication and role base access control.
MIT License
878
stars
142
forks
source link
Where or how to obtain a database session for a task #92
Thanks for this amazing work!
Can you help tell me where or how to obtain a database session for a task. I saw that the initial function of CRUDBase has db param, but I didn't see initialization. Thank you very much.
Thanks for this amazing work! Can you help tell me where or how to obtain a database session for a task. I saw that the initial function of CRUDBase has db param, but I didn't see initialization. Thank you very much.