Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dbcli/mycli
/ is_prefetching
Method
is_prefetching
mycli/schema_prefetcher.py:60–61 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
58
self._loaded: set[str] = set()
59
60
def
is_prefetching(self) -> bool:
61
return
bool(self._thread and self._thread.is_alive())
62
63
def
clear_loaded(self) -> None:
64
""
"Forget which schemas have been prefetched (used on reset)."
""
Callers
2
test_is_prefetching_and_clear_loaded
Function · 0.95
get_toolbar_tokens
Function · 0.80
Calls
1
is_alive
Method · 0.45
Tested by
1
test_is_prefetching_and_clear_loaded
Function · 0.76