MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / delete

Method delete

core/state.py:170–175  ·  view source on GitHub ↗

Delete a key from state. Returns True if deleted, False if not found.

(self, key: str)

Source from the content-addressed store, hash-verified

168 self._conn.commit()
169
170 def delete(self, key: str) -> bool:
171 """Delete a key from state. Returns True if deleted, False if not found."""
172 with self._lock:
173 cur = self._conn.execute("DELETE FROM state WHERE key = ?", (key,))
174 self._conn.commit()
175 return cur.rowcount > 0
176
177 def get_all(self) -> Dict[str, str]:
178 """Get all state key-value pairs."""

Callers 3

clearMethod · 0.80
clearMethod · 0.80
clearMethod · 0.80

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected