What type of PVC pipe would be able to do that?
CPVC with a coat of paint on the outside to protect from sunlight. Of course, a non-PVC pipe might suit your actual needs better, depending on your actual needs.
PEX would be a good alternative to a 'PVC' product. It also only has a slightly lower working temperature than CPVC (180F compared to 200F respectively). It is rated for potable water. It does not have a great UV resistance, however unless purchasing specialty CPVC or PVC with 1-2% Titanium Dioxide, neither are these products. I believe unless working in copper, PEX, PVC and CPVC should be covered and protected against UV exposure.