Add example script for invoking commands against the Proxy #1056
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
When trying to run a script or database migration, the user currently has to
The usage would be simplified if the cloudsql proxy offered an
exec
subcommand that could be used like this:The cloudsql-proxy binary would establish the connection, then run the supplied shell command, and terminate after the termination of the command.
Similar functionality is already offered by the firestore emulator to run automated tests (e.g.,
firebase emulators:exec "./my-test.sh"
, see [1]).Without this, waiting for the cloudsql proxy to become available and killing it reliably afterwards in a typical shell script that runs in a CI/CD pipeline is a significant hassle.
[1] https://firebase.google.com/docs/functions/local-emulator#run_the_emulator_suite
The text was updated successfully, but these errors were encountered: