Merge pull request #1839 from MemPalace/fix/graph-stats-sqlite-uri
fix(mcp): route _sqlite_graph_stats through sqlite_read_uri
This commit is contained in:
commit
e0da99b2d5
|
|
@ -1048,7 +1048,7 @@ def _sqlite_graph_stats():
|
|||
# graph_stats degrades to build_graph() rather than raising — mirroring the
|
||||
# sibling sqlite fast paths (_sqlite_taxonomy / _sqlite_wing_room_counts).
|
||||
try:
|
||||
conn = _sqlite3.connect(f"file:{db_path}?mode=ro", uri=True)
|
||||
conn = _sqlite3.connect(sqlite_read_uri(db_path), uri=True)
|
||||
try:
|
||||
conn.execute("PRAGMA busy_timeout = 3000")
|
||||
if (
|
||||
|
|
|
|||
Loading…
Reference in New Issue