MCPcopy Create free account
hub / github.com/dbt-labs/ade-bench / __init__

Method __init__

scripts_python/duckdb_utils.py:19–33  ·  view source on GitHub ↗

Initialize the DuckDB extractor. Args: source_dir: Path to directory containing DuckDB files. If None, uses default.

(self, source_dir: str = None)

Source from the content-addressed store, hash-verified

17 """Shared utilities for DuckDB data extraction and analysis."""
18
19 def __init__(self, source_dir: str = None):
20 """
21 Initialize the DuckDB extractor.
22
23 Args:
24 source_dir: Path to directory containing DuckDB files. If None, uses default.
25 """
26 if source_dir is None:
27 # Default to shared/databases/duckdb relative to this script
28 script_dir = os.path.dirname(os.path.abspath(__file__))
29 project_root = os.path.dirname(script_dir)
30 source_dir = os.path.join(project_root, "shared", "databases", "duckdb")
31
32 self.source_dir = Path(source_dir).resolve()
33 self.excluded_files: Set[str] = set()
34
35 def add_exclusions(self, exclusion_list: List[str]):
36 """Add files to exclusion list."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected