MCPcopy
hub / github.com/phuryn/claude-usage / require_db

Function require_db

cli.py:82–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 print(char * width)
81
82def require_db():
83 if not DB_PATH.exists():
84 print("Database not found. Run: python cli.py scan")
85 sys.exit(1)
86 return sqlite3.connect(DB_PATH)
87
88
89# ── Commands ──────────────────────────────────────────────────────────────────

Callers 3

cmd_todayFunction · 0.85
cmd_weekFunction · 0.85
cmd_statsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected