setting cloud_sql_proxy up to run in the background for automated db work is deceptively simple…
but getting it right is a little noodly. the trick is to let the cloud_sql_proxy get settled before trying to interact with it.
this script is a utility that’s intended to be used with some adaptation by database maintenance scripts, but could also be used by humans.