You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Currently some of these issues are being fixed manually. Ideally we would provide a tool that reports the issues above and the manual work required - or we could go further and automate the fixes for some of these issues.
class StationStatu(Base):
__tablename__ = "station_status"
__table_args__ = {"comment": "Stores allowed values for stations.status_id"}
class StationTimezone(Base):
__tablename__ = "station_timezones"
__table_args__ = {"comment": "Stores time zone that stations can be in."}
We are aware that sqlacodegen does not generate perfect models in the following circumstances:
Currently some of these issues are being fixed manually. Ideally we would provide a tool that reports the issues above and the manual work required - or we could go further and automate the fixes for some of these issues.
For 2&3 see comment opencdms-dev/pyopencdms#9 (comment) onwards.
Issues with plurals
ORM classes ending with letter “s” are not generated properly, sqlacodegen uses inflect. See https://stackoverflow.com/a/58010758 and the link to the issue in the inflect library
jaraco/inflect#15 (comment)
Examples from CliDE models:
https://github.com/opencdms/pyopencdms/blob/8940ebfd5b3ee7dff5a2bde3b2a305361ff2ee37/opencdms/models/clide.py#L1538-L1554
The text was updated successfully, but these errors were encountered: