Execute a statement without returning results Args: statement: GQL statement to execute Raises: QueryError: If execution fails
(self, statement: str)
| 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 | """ |
no test coverage detected