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

Function generate_db_path

scripts_python/profiling_statistics.py:19–23  ·  view source on GitHub ↗
(base_dir: str = "profiling")

Source from the content-addressed store, hash-verified

17
18
19def generate_db_path(base_dir: str = "profiling") -> str:
20 timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
21 stats_dir = Path(base_dir) / "statistics" / timestamp
22 stats_dir.mkdir(parents=True, exist_ok=True)
23 return str(stats_dir / "base.db")
24
25
26def create_database(db_path: str) -> sqlite3.Connection:

Callers 1

run_profiling_and_importFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected