Bases: object
Read-mostly facade over <workspace>/data/cache.duckdb.
Lazily opens a DataCatalogDuckDB
on first call.
- Parameters:
workspace (Path)
-
property db_path: Path
Filesystem path of the underlying cache DuckDB.
-
has_cache()[source]
Return True when <workspace>/data/cache.duckdb exists.
- Return type:
bool
-
list(*, variable=None, source=None, limit=None)[source]
List cache entries, optionally filtered by variable/source.
- Parameters:
-
- Return type:
DataFrame
-
find(*, variable, source, station_id=None, bbox=None)[source]
Return the cached entry covering the requested extent, or None.
- Parameters:
-
- Return type:
Any