在SQLite和Python中查询进度条
我想为查询创建一个进度条,比如说我有一个查询需要40秒才能完成,我想给用户一些反馈,让他们知道这个过程大概需要多长时间。我找到了一个来自Oracle的代码,正好符合我的需求。请问在sqlite中有没有类似的东西呢?
from timemachine import oracle
guesser=oracle(guess="SQL")
guesser.set_hint(driver="pypgsql")
guesser.set_hint(gui="wx")
expected_runtime=guesser.estimate("<put your query text here>")