Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Simplify DB base class declaration #117

Merged
merged 2 commits into from
Apr 17, 2020
Merged

Simplify DB base class declaration #117

merged 2 commits into from
Apr 17, 2020

Conversation

airibarne
Copy link
Contributor

Minor fix to simplify the code in DB base class declaration, by making use of the @as_declarative decorator introduced in SQLAlchemy 0.8.3.

@airibarne airibarne requested a review from tiangolo February 23, 2020 11:09
valentierra added a commit to valentierra/full-stack-fastapi-postgresql that referenced this pull request Apr 9, 2020
@tiangolo tiangolo merged commit 8a2252f into fastapi:master Apr 17, 2020
@tiangolo
Copy link
Member

Ah, yes! Nice. Thanks for your contribution! 🚀 🎉

gusevyaroslove pushed a commit to gusevyaroslove/fastapi-template that referenced this pull request Aug 4, 2024
* Simplify DB base class declaration

* ♻️ Remove object inheritance

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants