Closed ghost closed 4 years ago
I've been able to connect to the emulator by building from source / installing via go get -u github.com/cloudspannerecosystem/wrench
From the look of the binary wrench_darwin_amd64
I assume you've downloaded the latest release from github, which differs from the latest tag which go get
will clone and build.
@smacpher-myst
I've just released new version of wrench v1.0.3
which supports the emulator.
Would you please try it?
@110y Verified that using wrench_darwin_amd64
v1.0.3
works! Thank you for your help.
WHAT
Hi, is there support for using wrench with the local Cloud Spanner emulator? So far, I haven't been able to make it work. I've tried the following:
Shell session 1
Shell session 2
It looks like
wrench
isn't picking up on theSPANNER_EMULATOR_HOST
environment variable, and therefore is failing when hitting the actual Cloud Spanner API only to find that my dummy project / instance / database doesn't exist.I'm guessing
wrench
just uses the Go client library for Cloud Spanner – which according to the emulator docs should honor theSPANNER_EMULATOR_HOST
environment variable. So I might be missing something that's needed to make this work.WHY
We rely on the Cloud Spanner emulator for local development and are looking for a good tool to manage schema migrations. It would be great if we could start using
wrench
for both local and Cloud development.Thanks in advance.
EDIT
Perhaps https://github.com/googleapis/google-cloud-go/issues/1602 is related?