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

Method query

sdk-python/src/graphlite_sdk/connection.py:103–119  ·  view source on GitHub ↗

Execute a GQL query Args: query: GQL query string Returns: QueryResult with rows and metadata Raises: QueryError: If query execution fails

(self, query: str)

Source from the content-addressed store, hash-verified

101 return self._username
102
103 def query(self, query: str) -> QueryResult:
104 """
105 Execute a GQL query
106
107 Args:
108 query: GQL query string
109
110 Returns:
111 QueryResult with rows and metadata
112
113 Raises:
114 QueryError: If query execution fails
115 """
116 try:
117 return self._db.query(self._session_id, query)
118 except Exception as e:
119 raise QueryError(f"Query failed: {e}")
120
121 def execute(self, statement: str):
122 """

Callers 3

executeMethod · 0.45
mainFunction · 0.45

Calls 1

QueryErrorClass · 0.85

Tested by

no test coverage detected