Keeping the Data Code in One Place
A data module is the one file in an API that holds every SQL statement, with functions that take a connection and give back plain values (an id, a dictionary, a list, or None for a row that isn't there), so the routes call it and never write SQL themselves.
Updated

- Category
- FastAPI
- Level
- Journeyman
- Tags
- Data Access Object (DAO), fastapi, Repository Pattern, rest-api, Separation of Concerns