add onupdate option in field simply#532
add onupdate option in field simply#532ponytailer wants to merge 17 commits intoormar-orm:masterfrom ponytailer:master
Conversation
Codecov Report
@@ Coverage Diff @@
## master #532 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 185 186 +1
Lines 15298 15368 +70
=========================================
+ Hits 15298 15368 +70
|
|
Cascade should be another option in field ? @collerek The such like the sqlalchemy, and the |
Yes, it does. It's used to populate onupdate and ondelete foreign key options in sqlalchemy foreign key: Where you pass a string according to sqlalchemy core specification: |
|
That's in foreignKey only. when the model was updated, something to do auto, such as the otherwise, I have to define the code in model_cls |
thanks for your suggestions. |
|
This pr only include the Please review the #538 first, the |
|
Can you restore/uncomment |
sorry. I'm on vacation now. Maybe I can create the new pr for bulk-update in a few days. |
Ahh of course. Happy Lunar New Year! 🥳 🎉 No worries it can wait for your come back :) |
Sorry, I forgot something. In Next pr will add the dirty-columns, it can support If this pr has not any other problems, maybe merge it now. |
|
Before you implement something describe what you want to do. |
Thanks for your advice ! |
|
|
||
| columns = [self.model.get_column_alias(k) for k in columns] | ||
|
|
||
| # on_update_fields = { |
There was a problem hiding this comment.
please either update the code or remove it -> we don't want commented out code in the code base
|
Hi guys why is this PR not merged, I wish there was an onupdate like sqlalchemy. |
onupdatein field simplybulk-create