SQLAlchemy 2.0 Select API migration for with_polymorphic loading
Transitioning from Legacy Query to Select API SQLAlchemy 2.0 replaces the legacy Session.query() pattern with a unified select() function. While most ORM operations have direct equivalents in the new Select object, certain advanced loading strategies used in polymorphic inheritance require a different approach. Polymorphic Loading Constraints In the legacy Q