MCPcopy Create free account
hub / github.com/cosdata/cosdata / find_collection

Function find_collection

tests/rps-test.py:101–105  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

99
100# Function to find a database (collection) by Id
101def find_collection(id):
102 url = f"{base_url}/collections/{id}"
103
104 response = requests.get(url, headers=generate_headers(), verify=False)
105 return response.json()
106
107
108def create_transaction(collection_name):

Callers

nothing calls this directly

Calls 2

generate_headersFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected