MCPcopy Create free account
hub / github.com/ExtendDB/extenddb / delete_table_safe

Function delete_table_safe

samples/sample_app.py:86–92  ·  view source on GitHub ↗

Delete a table, ignoring ResourceNotFoundException.

(client, table_name: str)

Source from the content-addressed store, hash-verified

84 print(f" {title}")
85 print(f"{'='*60}\n")
86def delete_table_safe(client, table_name: str) -> None:
87 """Delete a table, ignoring ResourceNotFoundException."""
88 try:
89 client.delete_table(TableName=table_name)
90 print(f" ✓ Deleted {table_name}")
91 except client.exceptions.ResourceNotFoundException:
92 pass
93# ---------------------------------------------------------------------------
94# Step 1: Create tables
95# ---------------------------------------------------------------------------

Callers 2

drop_tablesFunction · 0.85
mainFunction · 0.85

Calls 1

delete_tableMethod · 0.80

Tested by

no test coverage detected