Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Handle grants on multiple columns of a table #40

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

bogdaniordache
Copy link

@bogdaniordache bogdaniordache commented Jul 20, 2022

This PR improves logic of showGrants() in mysql/resource_grant.go in order to be able to handle grants on specific columns: SELECT (a, b, c, d)

example usage:

resource "mysql_grant" "test_db1" {
  user       = "test"
  host       = "%"
  database   = "db1"
  table      = "test"
  privileges = ["SELECT", "UPDATE (`column1`, `column2`, `column3`)"]
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant