()
| 51 | } |
| 52 | |
| 53 | func init() { |
| 54 | CmdGrant.Run = runGrant |
| 55 | |
| 56 | addCommonFlags(CmdGrant) |
| 57 | addConfigFlag(CmdGrant) |
| 58 | addWaitFlag(CmdGrant) |
| 59 | CmdGrant.Flag.StringVar(&toUser, "to-user", "", "Target address of an user account to grant permission.") |
| 60 | CmdGrant.Flag.StringVar(&toDSN, "to-dsn", "", "Target database dsn to grant permission.") |
| 61 | CmdGrant.Flag.StringVar(&perm, "perm", "", "Permission type struct for grant.") |
| 62 | } |
| 63 | |
| 64 | type userPermPayload struct { |
| 65 | // User role to access database. |
nothing calls this directly
no test coverage detected