The Bernoulli equation for the steady steady flow of compressible fluids is $$ h+ \frac 12 |{\bf v}|^2=const. $$ and streamlinesalong streamlines. Here $h$ is the enthalpy $U+PV$ per unit mass. It only reduces to the OP's expression when $\rho=1/V$ is a constant.