Re:SQLAlchemy 2.0 Released
by dragonwriter on Friday January 27, 2023 @12:34AM
(#34542875)
If you are doing ORM on a greenfield project, the declarative style.
[ Parent
| on HN ]
Which declarative style? Mapped or columns?
Columns. Even early on many years ago, I ignore all the exotic forms and different ways. Leave those for when you need to do something non-standard or programmatic.
Choose a form that works for you and looks nice, apply it to all your oddest use cases like many to many relationships and self-referential relationships, and then use that as a template going forward.