query progress bar
Harald Massa
cpl.19.ghum at spamgourmet.com
Tue May 17 01:31:50 EDT 2005
> it's for wx, the problem isn't making the progress bar itself, it's
> knowing how long the query is going to run for.
> i'm using pypgsql
It is quite easy:
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>")
Only problem is that the timemachine module is currently only installed
on Guidos and Tims Python.
Harald
More information about the Python-list
mailing list