Is there a way to log the final SQL statement that is run (i.e. with interpolated values)? I can log

Is there a way to log the final SQL statement that is run (i.e. with interpolated values)? I can log the prepared statement object which gives me the statement string and the array of values to interpolate, but would be helpful for debugging if I could just grab the final SQL that is run.
Was this page helpful?