MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / Count

Method Count

server-source-code/internal/store/users.go:189–196  ·  view source on GitHub ↗

Count returns total user count.

(ctx context.Context)

Source from the content-addressed store, hash-verified

187
188// Count returns total user count.
189func (s *UsersStore) Count(ctx context.Context) (int, error) {
190 d := s.db.DB(ctx)
191 n, err := d.Queries.CountUsers(ctx)
192 if err != nil {
193 return 0, err
194 }
195 return int(n), nil
196}
197
198// CountAdmins returns count of admin users.
199func (s *UsersStore) CountAdmins(ctx context.Context) (int, error) {

Callers 8

ListMethod · 0.45
CreateMethod · 0.45
GetMyBillingMethod · 0.45
SendNowMethod · 0.45
AdminListMethod · 0.45
CreateMethod · 0.45
EnrollMethod · 0.45
warnDBPoolUndersizedFunction · 0.45

Calls 2

DBMethod · 0.65
CountUsersMethod · 0.65

Tested by

no test coverage detected