-
Notifications
You must be signed in to change notification settings - Fork 3
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
DBクラスをもう少し良い感じに共通化する #132
Comments
Closed
ORM使っちゃう説はある(トリッキーなことをしない場合は特に) SQLAlchemy: ド定番、日本語での知見が多い SQLAlchemy: https://www.sqlalchemy.org/ |
良さそう。 |
peeweeのほうがシンプルに書けそうだと思ってる。 |
なるほどね。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/nakkaa/hato-bot/blob/develop/library/database.py はpylintに怒られない程度に共通化しているだけですが、SQLを実行する部分をexecute_sqlに寄せるなど、もう少し良い感じに共通化します。
The text was updated successfully, but these errors were encountered: