New issue
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
enhancement to simplify the BaseModel boilerplate code #2637
Comments
ps: i've seen this pattern from sqla-wrapper. this library might be helpful as well. |
another enhancement: # /usr/local/lib/python3.9/dist-packages/peewee.py:3420
# def create_tables(self, models, bind=True,**options):
# for model in sort_models(models):
# if bind:
# model.bind(self)
# model.create_table(**options)
class User2(Model):
username = CharField(unique=True)
db.create_tables([User2]) |
coleifer
added a commit
that referenced
this issue
Oct 24, 2022
coleifer
added a commit
that referenced
this issue
Oct 24, 2022
I'm going to pass on the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i wrote some code for simplification:
The text was updated successfully, but these errors were encountered: