MCPcopy Index your code
hub / github.com/coder/coder / InsertUserGroupsByID

Method InsertUserGroupsByID

coderd/database/querier.go:1004–1004  ·  view source on GitHub ↗

InsertUserGroupsByID adds a user to all provided groups, if they exist. If there is a conflict, the user is already a member

(ctx context.Context, arg InsertUserGroupsByIDParams)

Source from the content-addressed store, hash-verified

1002 // InsertUserGroupsByID adds a user to all provided groups, if they exist.
1003 // If there is a conflict, the user is already a member
1004 InsertUserGroupsByID(ctx context.Context, arg InsertUserGroupsByIDParams) ([]uuid.UUID, error)
1005 InsertUserLink(ctx context.Context, arg InsertUserLinkParams) (UserLink, error)
1006 InsertUserSkill(ctx context.Context, arg InsertUserSkillParams) (UserSkill, error)
1007 InsertVolumeResourceMonitor(ctx context.Context, arg InsertVolumeResourceMonitorParams) (WorkspaceAgentVolumeResourceMonitor, error)

Callers 4

ApplyGroupDifferenceMethod · 0.65
InsertUserGroupsByIDMethod · 0.65
InsertUserGroupsByIDMethod · 0.65
TestGroupMethod · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 1

TestGroupMethod · 0.52