MCPcopy Create free account
hub / github.com/rilldata/rill / DeleteUsergroup

Method DeleteUsergroup

admin/database/postgres/postgres.go:1088–1091  ·  view source on GitHub ↗
(ctx context.Context, groupID string)

Source from the content-addressed store, hash-verified

1086}
1087
1088func (c *connection) DeleteUsergroup(ctx context.Context, groupID string) error {
1089 res, err := c.getDB(ctx).ExecContext(ctx, "DELETE FROM usergroups WHERE id=$1", groupID)
1090 return checkDeleteRow("usergroup", res, err)
1091}
1092
1093func (c *connection) FindUsergroupsForUser(ctx context.Context, userID, orgID string) ([]*database.Usergroup, error) {
1094 var res []*database.Usergroup

Callers

nothing calls this directly

Calls 3

getDBMethod · 0.95
checkDeleteRowFunction · 0.85
ExecContextMethod · 0.45

Tested by

no test coverage detected