Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for roles #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add support for roles #64

wants to merge 1 commit into from

Conversation

rail44
Copy link

@rail44 rail44 commented Sep 17, 2024

I added support for creating roles and granting permissions to them, which is used in Spanner's Fine Grained Access Control.

https://cloud.google.com/spanner/docs/reference/standard-sql/data-definition-language#role_statements
https://cloud.google.com/spanner/docs/reference/standard-sql/data-definition-language#grant_and_revoke_statements

Unlike tables, etc., these do not retain data internally, so as a diff, simply do a drop/revoke and then create/grant.
I'd be happy to learn of any errors in implementation policy, missing test cases, etc.

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