Skip to content

feat: Support autoconfigEmulator property #405

@apstndb

Description

@apstndb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions