pub async fn tx_delete<T: SqlCommand + SqlParams>(
transaction: Transaction<'_>,
entity: T,
) -> Result<(Transaction<'_>, u64), Error>Expand description
§tx_delete
Deletes a record within a transaction.
§Parameters
transaction: Active transaction objectentity: Data object identifying the record to delete (must implement Deletable and SqlParams traits)
§Return Value
Result<(Transaction<'_>, u64), Error>: On success, returns the transaction and number of deleted records