MCPcopy Create free account
hub / github.com/FastLED/FastLED / delete_by_id

Method delete_by_id

ci/docker_utils/container_db.py:217–231  ·  view source on GitHub ↗

Delete container record by ID. Args: container_id: Container ID to delete

(self, container_id: str)

Source from the content-addressed store, hash-verified

215 conn.close()
216
217 def delete_by_id(self, container_id: str) -> None:
218 """Delete container record by ID.
219
220 Args:
221 container_id: Container ID to delete
222 """
223 conn = self._get_connection()
224 try:
225 cursor = conn.cursor()
226 cursor.execute(
227 "DELETE FROM containers WHERE container_id = ?", (container_id,)
228 )
229 conn.commit()
230 finally:
231 conn.close()
232
233 def delete_by_name(self, container_name: str) -> None:
234 """Delete container record by name.

Callers 5

prepare_containerFunction · 0.95
cleanup_containerFunction · 0.95
test_record_operationsFunction · 0.95

Calls 4

_get_connectionMethod · 0.95
executeMethod · 0.80
commitMethod · 0.80
closeMethod · 0.45

Tested by 1

test_record_operationsFunction · 0.76