tortoise-orm
tortoise-orm copied to clipboard
Refactor fastapi example
Description
Motivation and Context
Refactor, to reduce duplicated code
How Has This Been Tested?
make ci
Checklist:
- [x] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have added the changelog accordingly.
- [x] I have read the CONTRIBUTING document.
- [ ] I have added tests to cover my changes.
- [x] All new and existing tests passed.