4 ms·
Curious when you need to know when null is intentional or not. There's no corresponding type like that in the db.
by eweise 3y ago
Curious when you need to know when null is intentional or not. There's no corresponding type like that in the db.
- buzer 3y agoFor 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.
- peter_l_downs 3y agoThis 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!
- eweise 3y agoThanks. That makes sense. I don't have that pattern in my code but I can see that some might.