MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / CountUsers

Method CountUsers

inventory/group.go:67–69  ·  view source on GitHub ↗
(ctx context.Context, id int)

Source from the content-addressed store, hash-verified

65}
66
67func (c *groupClient) CountUsers(ctx context.Context, id int) (int, error) {
68 return c.client.Group.Query().Where(group.ID(id)).QueryUsers().Count(ctx)
69}
70
71func (c *groupClient) AnonymousGroup(ctx context.Context) (*ent.Group, error) {
72 return withGroupEagerLoading(ctx, c.client.Group.Query().Where(group.ID(AnonymousGroupID))).First(ctx)

Callers

nothing calls this directly

Calls 5

IDFunction · 0.92
CountMethod · 0.65
QueryUsersMethod · 0.45
WhereMethod · 0.45
QueryMethod · 0.45

Tested by

no test coverage detected