CountAdmins returns count of admin users.
(ctx context.Context)
| 197 | |
| 198 | // CountAdmins returns count of admin users. |
| 199 | func (s *UsersStore) CountAdmins(ctx context.Context) (int, error) { |
| 200 | d := s.db.DB(ctx) |
| 201 | n, err := d.Queries.CountAdmins(ctx) |
| 202 | if err != nil { |
| 203 | return 0, err |
| 204 | } |
| 205 | return int(n), nil |
| 206 | } |
| 207 | |
| 208 | // Create creates a new user. |
| 209 | func (s *UsersStore) Create(ctx context.Context, u *models.User) error { |
nothing calls this directly
no test coverage detected