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

Function commit_transaction

tests/test-tf-idf-ndcg.py:180–183  ·  view source on GitHub ↗

Commit transaction using cosdata client

(txn)

Source from the content-addressed store, hash-verified

178
179
180def commit_transaction(txn):
181 """Commit transaction using cosdata client"""
182 txn.commit()
183 return txn.transaction_id
184
185
186def search_document(collection, query: str, top_k: int) -> List[Tuple[str, float]]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected