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
Expected behavior
The package should create valid Python code, since enums including whitespace are allowed in SQL and supported by Pythons enum package.
Proposed solution
As outlined in this blog post, the Enum function allows us to specify member names using tuple lists or dicts. This way we can use names with spaces, and the above example can be re-written as:
Describe the bug
When converting SQL DDL that contains enums with whitespaces, omm creates invalid Python syntax.
E.g. the following SQL
Creates this Python output which contains illegal whitespace in the class attributes.
Expected behavior
The package should create valid Python code, since enums including whitespace are allowed in SQL and supported by Pythons enum package.
Proposed solution
As outlined in this blog post, the
Enum
function allows us to specify member names using tuple lists or dicts. This way we can use names with spaces, and the above example can be re-written as:I'll create a PR including the proposed solution!
The text was updated successfully, but these errors were encountered: