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 omymodels unable to generate SQLModel code with Arrays.
omymodels
To Reproduce Steps to reproduce the behavior:
Run
from omymodels import create_models ddl = """ CREATE TABLE test_table ( id SERIAL PRIMARY KEY, names TEXT[] ); """ result = create_models(ddl, models_type='sqlmodel')['code'] print(result)
Will receive the following error -
TypeError: string indices must be integers, not 'str'
Expected behavior
SQLModel code generates without errors.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
cc @cfhowes
Sorry, something went wrong.
No branches or pull requests
Describe the bug
omymodels
unable to generate SQLModel code with Arrays.To Reproduce
Steps to reproduce the behavior:
Run
Will receive the following error -
Expected behavior
SQLModel code generates without errors.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: