This feature is about automatically configuring the connection for the Spanner emulator.
Reference (java-spanner):
java-spanner has an autoconfigEmulator connection property. When true, it automatically sets the correct endpoint and uses plaintext communication if the connection string points to a known emulator host.
Implementation suggestion for spanner-mycli:
This could be implemented as a session-init-only system variable, e.g., CLI_AUTOCONFIG_EMULATOR. When enabled, spanner-mycli would inspect the provided host/endpoint and, if it matches an emulator pattern (like localhost), automatically set CLI_INSECURE=TRUE and other necessary emulator-specific options.
This feature is about automatically configuring the connection for the Spanner emulator.
Reference (
java-spanner):java-spannerhas anautoconfigEmulatorconnection property. When true, it automatically sets the correct endpoint and uses plaintext communication if the connection string points to a known emulator host.Implementation suggestion for
spanner-mycli:This could be implemented as a session-init-only system variable, e.g.,
CLI_AUTOCONFIG_EMULATOR. When enabled,spanner-mycliwould inspect the provided host/endpoint and, if it matches an emulator pattern (likelocalhost), automatically setCLI_INSECURE=TRUEand other necessary emulator-specific options.