Currently if we want to define an emulator host, we need to set the SPANNER_EMULATOR_HOST. Those who using the tool as library it is pretty hard to maintain, because we need to call os.Setenv, which is a pretty bad practices in case of testing.
Edit, in case of approval, I will be happy to work on it.
WHAT
Make it possible to pass the Emulator host in the Config.
WHY
Currently if we want to define an emulator host, we need to set the
SPANNER_EMULATOR_HOST
. Those who using the tool as library it is pretty hard to maintain, because we need to call os.Setenv, which is a pretty bad practices in case of testing.Edit, in case of approval, I will be happy to work on it.