MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / UserCount

Method UserCount

internal/store/users.go:573–580  ·  view source on GitHub ↗

UserCount returns the total number of registered users.

()

Source from the content-addressed store, hash-verified

571
572// UserCount returns the total number of registered users.
573func (s *Store) UserCount() (int, error) {
574 var count int
575 err := s.db.QueryRow(s.q("SELECT COUNT(*) FROM users")).Scan(&count)
576 if err != nil {
577 return 0, fmt.Errorf("count users: %w", err)
578 }
579 return count, nil
580}
581
582// BillingAggregates is the set of users-table aggregates returned by
583// CountBillingAggregates: per-plan customer counts and the number of

Callers 15

serveCmdFunction · 0.95
TestUserCountFunction · 0.80
authorizeCollabAccessMethod · 0.80
resolverItemVisibleMethod · 0.80
crossWorkspaceRoleMethod · 0.80
handleBootstrapMethod · 0.80
handleRegisterMethod · 0.80
handleLoginMethod · 0.80
handleSessionCheckMethod · 0.80

Calls 3

qMethod · 0.95
ScanMethod · 0.80
QueryRowMethod · 0.80