mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-28 03:44:31 +02:00
Began implementation of sqlite-utils convert, refs #251
This commit is contained in:
parent
c7e8d72be9
commit
6964d67ce1
3 changed files with 551 additions and 0 deletions
|
|
@ -254,3 +254,17 @@ class ValueTracker:
|
|||
not_these.append(name)
|
||||
for key in not_these:
|
||||
del self.couldbe[key]
|
||||
|
||||
|
||||
class NullProgressBar:
|
||||
def update(self, value):
|
||||
pass
|
||||
|
||||
|
||||
@contextlib.contextmanager
|
||||
def progressbar(silent=False, **kwargs):
|
||||
if silent:
|
||||
yield NullProgressBar()
|
||||
else:
|
||||
with click.progressbar(**kwargs) as bar:
|
||||
yield bar
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue