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

Method delete_by_name

ci/docker_utils/container_db.py:233–247  ·  view source on GitHub ↗

Delete container record by name. Args: container_name: Container name to delete

(self, container_name: str)

Source from the content-addressed store, hash-verified

231 conn.close()
232
233 def delete_by_name(self, container_name: str) -> None:
234 """Delete container record by name.
235
236 Args:
237 container_name: Container name to delete
238 """
239 conn = self._get_connection()
240 try:
241 cursor = conn.cursor()
242 cursor.execute(
243 "DELETE FROM containers WHERE container_name = ?", (container_name,)
244 )
245 conn.commit()
246 finally:
247 conn.close()
248
249 def get_all(self) -> list[ContainerRecord]:
250 """Get all container records.

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected