MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / init

Function init

cmd/cql/internal/grant.go:53–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53func 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
64type userPermPayload struct {
65 // User role to access database.

Callers

nothing calls this directly

Calls 3

addCommonFlagsFunction · 0.85
addConfigFlagFunction · 0.85
addWaitFlagFunction · 0.85

Tested by

no test coverage detected