MCPcopy
hub / github.com/zenml-io/zenml / delete_api_transaction

Method delete_api_transaction

src/zenml/zen_stores/sql_zen_store.py:2586–2598  ·  view source on GitHub ↗

Delete an API transaction. Args: api_transaction_id: The ID of the API transaction to delete.

(self, api_transaction_id: UUID)

Source from the content-addressed store, hash-verified

2584 session.commit()
2585
2586 def delete_api_transaction(self, api_transaction_id: UUID) -> None:
2587 """Delete an API transaction.
2588
2589 Args:
2590 api_transaction_id: The ID of the API transaction to delete.
2591 """
2592 with Session(self.engine) as session:
2593 session.execute(
2594 delete(ApiTransactionSchema).where(
2595 col(ApiTransactionSchema.id) == api_transaction_id
2596 )
2597 )
2598 session.commit()
2599
2600 # -------------------- Services --------------------
2601

Callers 1

Calls 3

SessionClass · 0.85
executeMethod · 0.45
commitMethod · 0.45

Tested by

no test coverage detected