Skip to content

Support Spanner database roles - #86

Merged
apstndb merged 2 commits into
mainfrom
feat/database-role
Sep 8, 2026
Merged

apstndb merged 2 commits into
mainfrom
feat/database-role

Conversation

@apstndb

@apstndb apstndb commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Add --database-role to run queries and other database operations with a Spanner database role, matching the execute-sql option. The role is passed to the shared Spanner client configuration; omitting the flag preserves the existing behavior.

Tests cover flag parsing and capture the actual session-creation RPC for supplied and omitted roles. README help and usage are updated. The local transport test verifies role propagation; it does not validate managed Spanner role grants or permission enforcement.

Validation: go test ./... (including emulator integration tests), go build ./..., golangci-lint run --timeout=5m (0 issues), git diff --check, and generated CLI help comparison with Go 1.25.13.

@apstndb
apstndb merged commit 7227bf0 into main Sep 8, 2026
2 checks passed
@apstndb
apstndb deleted the feat/database-role branch September 8, 2026 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant