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

Method GetClient

inventory/group.go:63–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63func (c *groupClient) GetClient() *ent.Client {
64 return c.client
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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected