- BACKWARD INCOMPATIBLE API changes (for those who customize code generation by subclassing the existing generators):
- Added new optional keyword argument,
explicit_foreign_keystoDeclarativeGenerator, to force foreign keys to be rendered asClassName.attribute_namestring references - Removed the
render_relationship_args()method from the SQLModel generator - Added two new methods for customizing relationship rendering in
DeclarativeGenerator:render_relationship_annotation(): returns the appropriate type annotation (without theMappedwrapper) for the relationshiprender_relationship_arguments(): returns a dictionary of keyword arguments tosqlalchemy.orm.relationship()
- Added new optional keyword argument,