MCPcopy Create free account
hub / github.com/IBM/AssetOpsBench / drop_database

Function drop_database

src/couchdb/loader.py:210–214  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

208
209
210def drop_database(db) -> int:
211 r = requests.delete(_db_url(db), auth=_AUTH, timeout=10)
212 if r.status_code not in (200, 202, 404):
213 r.raise_for_status()
214 return r.status_code
215
216
217def _ensure_db(db, drop):

Callers

nothing calls this directly

Calls 2

_db_urlFunction · 0.85
deleteMethod · 0.45

Tested by

no test coverage detected