func (db *DB) DeleteOrderWithinTransaction(order *match.LimitOrder, pair *match.Pair, tx *sql.Tx) (err error) {
	defer func() {
		if err != nil {
			err = fmt.Errorf("Error deleting order within transaction: \n%s", err)
			return
		}
	}()

	deleteOrderQuery := fmt.Sprintf("DELETE FROM %s WHERE orderID='%s';", pair.String(), order.OrderID)
	if _, err = tx.Exec(deleteOrderQuery); err != nil {
		return
	}
	return
}
// DeleteOrderWithinTransaction deletes an order within a transaction.
DeleteOrderWithinTransaction deletes an order within a transaction.
// DeleteOrderWithinTransaction deletes an order within a transaction .
func (db *DB) DeleteOrderWithinTransaction(order *match.LimitOrder, pair *match.Pair, tx *sql.Tx) (err error) {
	defer func() {
		if err != nil {
			err = fmt.Errorf("Error deleting order within transaction: \n%s", err)
			return
		}
	}()
	deleteOrderQuery := fmt.Sprintf("DELETE FROM %s WHERE orderID='%s';", pair.String(), order.OrderID)
	if _, err = tx.Exec(deleteOrderQuery); err != nil {
		return
	}
	return
}
func ( db * DB ) DeleteOrderWithinTransaction ( order * match . LimitOrder , pair * match . Pair , tx * sql . Tx ) ( err error ) { defer func ( ) { if err != nil { err = fmt . Errorf ( " \n " , err ) return } } ( ) deleteOrderQuery := fmt . Sprintf ( " " , pair . String ( ) , order . OrderID ) if _ , err = tx . Exec ( deleteOrderQuery ) ; err != nil { return } return }
DeleteOrderWithinTransaction deletes an order within a transaction.
DeleteOrderWithinTransaction deletes an order within a transaction .