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

Method execute

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

Execute a statement without returning results Args: statement: GQL statement to execute Raises: QueryError: If execution fails

(self, statement: str)

Source from the content-addressed store, hash-verified

119 raise QueryError(f"Query failed: {e}")
120
121 def execute(self, statement: str):
122 """
123 Execute a statement without returning results
124
125 Args:
126 statement: GQL statement to execute
127
128 Raises:
129 QueryError: If execution fails
130 """
131 try:
132 self._db.execute(self._session_id, statement)
133 except Exception as e:
134 raise QueryError(f"Execute failed: {e}")
135
136 def transaction(self):
137 """

Callers 2

mainFunction · 0.45

Calls 1

QueryErrorClass · 0.85

Tested by

no test coverage detected