MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / close

Method close

bindings/python/graphlite/graphlite.py:340–351  ·  view source on GitHub ↗

Close the database and all sessions

(self)

Source from the content-addressed store, hash-verified

338 self._sessions.discard(session_id)
339
340 def close(self) -> None:
341 """Close the database and all sessions"""
342 if self._db:
343 # Close all open sessions
344 for session_id in list(self._sessions):
345 try:
346 self.close_session(session_id)
347 except GraphLiteError:
348 pass # Ignore errors during cleanup
349
350 _lib.graphlite_close(self._db)
351 self._db = None
352
353 def __enter__(self):
354 """Context manager entry"""

Callers 4

__exit__Method · 0.95
__del__Method · 0.95
mainFunction · 0.95
mainFunction · 0.95

Calls 2

close_sessionMethod · 0.95
graphlite_closeMethod · 0.80

Tested by

no test coverage detected