MCPcopy Create free account
hub / github.com/dolthub/doltgresql / authTestGrantBasic

Function authTestGrantBasic

testing/go/auth_test.go:1615–1622  ·  view source on GitHub ↗

authTestGrantBasic grants |privileges| to authTestBasicUser on given |object| (include the object type in |object| if applicable).

(object string, privileges ...string)

Source from the content-addressed store, hash-verified

1613// authTestGrantBasic grants |privileges| to authTestBasicUser on given |object| (include the object type in |object| if
1614// applicable).
1615func authTestGrantBasic(object string, privileges ...string) ScriptTestAssertion {
1616 return ScriptTestAssertion{
1617 Username: "postgres",
1618 Password: "password",
1619 Query: fmt.Sprintf("GRANT %s ON %s TO %s", strings.Join(privileges, ","), object, authTestBasicUser),
1620 Expected: []sql.Row{},
1621 }
1622}

Callers 1

TestAuthDoltProceduresFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected