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

Function abort_transaction

tests/test-usv.py:85–89  ·  view source on GitHub ↗
(name, txn_id)

Source from the content-addressed store, hash-verified

83 raise Exception(f"Failed to commit transaction: {response.text}")
84
85def abort_transaction(name, txn_id):
86 url = f"{client.base_url}/collections/{name}/transactions/{txn_id}/abort"
87 response = requests.post(url, headers=client._get_headers(), verify=client.verify_ssl)
88 if response.status_code not in [200, 204]:
89 raise Exception(f"Failed to abort transaction: {response.text}")
90
91def upsert_in_transaction(name, txn_id, vectors):
92 """

Callers

nothing calls this directly

Calls 1

_get_headersMethod · 0.45

Tested by

no test coverage detected