MCPcopy Index your code
hub / github.com/rilldata/rill / FindProjectMemberUsersForUserAndProjects

Method FindProjectMemberUsersForUserAndProjects

admin/database/database.go:256–256  ·  view source on GitHub ↗

FindProjectMemberUsersForUserAndProjects returns a map of project ID to direct project membership for a user.

(ctx context.Context, userID string, projectIDs []string)

Source from the content-addressed store, hash-verified

254 FindProjectMemberUser(ctx context.Context, projectID, userID string) (*ProjectMemberUser, error)
255 // FindProjectMemberUsersForUserAndProjects returns a map of project ID to direct project membership for a user.
256 FindProjectMemberUsersForUserAndProjects(ctx context.Context, userID string, projectIDs []string) (map[string]*ProjectMemberUser, error)
257 InsertProjectMemberUser(ctx context.Context, projectID, userID, roleID string, restrictResources bool, resources []ResourceName) error
258 DeleteProjectMemberUser(ctx context.Context, projectID, userID string) error
259 DeleteAllProjectMemberUserForOrganization(ctx context.Context, orgID, userID string) error

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected