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
ModelBuilder
If you have a foreign key which references its own table:
class MyTable(Table): fk = ForeignKey("self")
You get an error when using ModelBuilder:
>>> await ModelBuilder.build(MyTable) Max recursion error!
If the foreign key is nullable, we can set the value to None, to avoid an infinite loop.
None
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
If you have a foreign key which references its own table:
You get an error when using
ModelBuilder
:If the foreign key is nullable, we can set the value to
None
, to avoid an infinite loop.The text was updated successfully, but these errors were encountered: