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

Method DeleteUsergroupMemberUser

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

Source from the content-addressed store, hash-verified

1125}
1126
1127func (c *connection) DeleteUsergroupMemberUser(ctx context.Context, groupID, userID string) error {
1128 res, err := c.getDB(ctx).ExecContext(ctx, "DELETE FROM usergroups_users WHERE user_id = $1 AND usergroup_id = $2", userID, groupID)
1129 return checkDeleteRow("usergroup member", res, err)
1130}
1131
1132func (c *connection) DeleteUsergroupsMemberUser(ctx context.Context, orgID, userID string) error {
1133 _, err := c.getDB(ctx).ExecContext(ctx, `

Callers

nothing calls this directly

Calls 3

getDBMethod · 0.95
checkDeleteRowFunction · 0.85
ExecContextMethod · 0.45

Tested by

no test coverage detected