MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / _get_kuzu_db

Function _get_kuzu_db

tests/test_issue_806_fix.py:54–63  ·  view source on GitHub ↗

Get KuzuDB manager, or return None if not available.

()

Source from the content-addressed store, hash-verified

52
53
54def _get_kuzu_db():
55 """Get KuzuDB manager, or return None if not available."""
56 if not _is_kuzu_available():
57 return None
58 try:
59 from codegraphcontext.core.database_kuzu import KuzuDBManager
60
61 return KuzuDBManager()
62 except Exception:
63 return None
64
65
66# Determine at module load time whether KuzuDB is available

Callers 3

setUpClassMethod · 0.85
setUpClassMethod · 0.85
setUpClassMethod · 0.85

Calls 2

KuzuDBManagerClass · 0.90
_is_kuzu_availableFunction · 0.85

Tested by

no test coverage detected