Hacker News new | ask | show | jobs
by buzer 862 days ago
For example when you are using partially populated record to update the database. If field is null intentionally it means it should be updated to it. If it's not set the update statement should not touch it.
2 comments

This is a great explanation. Sqlboiler allows you to send an update that will infer which values have changed and should be written — I bet that’s related to this. TIL!
Thanks. That makes sense. I don't have that pattern in my code but I can see that some might.