0

I have a locally installed Cloud Spanner emulator, running in a docker container. How can I connect to it with wrench?

Csongor Halmai
  • 3,239
  • 29
  • 30

1 Answers1

1

In order to connect, there are several CLI parameters to define. Here is a complete command that creates a dump from the database:

SPANNER_EMULATOR_HOST=localhost:7010 wrench --database testdb --project testproj --instance testinst load --schema_file dump.sql

In order to execute other commands, you may need to replace the end of this command, starting from load onwards.

Csongor Halmai
  • 3,239
  • 29
  • 30