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

Method Count

internal/database/users.go:235–239  ·  view source on GitHub ↗

Count returns the total number of users.

(ctx context.Context)

Source from the content-addressed store, hash-verified

233
234// Count returns the total number of users.
235func (s *UsersStore) Count(ctx context.Context) int64 {
236 var count int64
237 s.db.WithContext(ctx).Model(&User{}).Where("type = ?", UserTypeIndividual).Count(&count)
238 return count
239}
240
241type CreateUserOptions struct {
242 FullName string

Callers 15

CompareFunction · 0.45
InitFunction · 0.45
HasForkedByMethod · 0.45
CountOrganizationsFunction · 0.45
GetUserRepositoriesMethod · 0.45
loginSourcesCountFunction · 0.45
CountIssuesMethod · 0.45
countRepoMilestonesFunction · 0.45
MilestoneStatsFunction · 0.45
DeleteByIDMethod · 0.45
searchUserByNameFunction · 0.45

Calls 1

WhereMethod · 0.80

Tested by 8

loginSourcesCountFunction · 0.36
noticesCreateFunction · 0.36
noticesDeleteByIDsFunction · 0.36
noticesDeleteAllFunction · 0.36
noticesCountFunction · 0.36
usersCountFunction · 0.36
usersDeleteByIDFunction · 0.36
twoFactorsCreateFunction · 0.36