We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug In the generated dataclass code a "normal" false appears instead of the python version.
To Reproduce Steps to reproduce the behavior:
CREATE TABLE
edited boolean DEFAULT false,
create_models(ddl, models_type="dataclass")
edited: Optional[bool] = false
Expected behavior false -> False
Screenshots
CREATE TABLE Material ( id integer, name string, edited boolean DEFAULT false, deleted boolean DEFAULT true, PRIMARY KEY (id, name) );
@dataclass class Material: id: int name: str edited: bool = false deleted: bool = true
If you like a can present a possible fix. In the from_ddl.py and prepare_data function I would change the bool.
The text was updated successfully, but these errors were encountered:
fix xnuinside#65 booleans are not capitalized
fcac01d
add test case for xnuinside#65
b74839e
Successfully merging a pull request may close this issue.
Describe the bug
In the generated dataclass code a "normal" false appears instead of the python version.
To Reproduce
Steps to reproduce the behavior:
CREATE TABLE
statement, containing this column:edited boolean DEFAULT false,
create_models(ddl, models_type="dataclass")
edited: Optional[bool] = false
Expected behavior
false -> False
Screenshots
If you like a can present a possible fix. In the from_ddl.py and prepare_data function I would change the bool.
The text was updated successfully, but these errors were encountered: