progressbar for inserts/upserts of all fileformats, closes #485

This commit is contained in:
Mischa Untaga 2022-09-08 16:56:52 +02:00
commit 5fd78e27d2
2 changed files with 31 additions and 26 deletions

View file

@ -155,6 +155,11 @@ class UpdateWrapper:
self._update(len(line))
yield line
def read(self, size=-1):
data = self._wrapped.read(size)
self._update(len(data))
return data
@contextlib.contextmanager
def file_progress(file, silent=False, **kwargs):