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

Function list_databases

src/couchdb/loader.py:203–207  ·  view source on GitHub ↗
(include_system=False)

Source from the content-addressed store, hash-verified

201
202
203def list_databases(include_system=False) -> list:
204 r = requests.get(_db_url("_all_dbs"), auth=_AUTH, timeout=10)
205 r.raise_for_status()
206 dbs = r.json()
207 return dbs if include_system else [d for d in dbs if not d.startswith("_")]
208
209
210def drop_database(db) -> int:

Callers

nothing calls this directly

Calls 2

_db_urlFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected