(Data): Small extensions to core data interfaces.

Add `LEQ` condition type.
Ensure that batch updates don't fire with nothing to update.
Add `cast_row` to `update_many` for handling typed `NULL`s.
This commit is contained in:
2021-09-19 09:54:08 +03:00
parent fa2435e93a
commit 4229fe8b18
3 changed files with 20 additions and 3 deletions

View File

@@ -113,7 +113,8 @@ class Row:
try:
yield self._pending
finally:
self.update(**self._pending)
if self._pending:
self.update(**self._pending)
self._pending = None
def _refresh(self):