Delete an API transaction. Args: api_transaction_id: The ID of the API transaction to delete.
(self, api_transaction_id: UUID)
| 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 |
no test coverage detected