Count returns the count of the given query.
(ctx context.Context)
| 228 | |
| 229 | // Count returns the count of the given query. |
| 230 | func (gcq *GitCommitQuery) Count(ctx context.Context) (int, error) { |
| 231 | ctx = setContextOp(ctx, gcq.ctx, ent.OpQueryCount) |
| 232 | if err := gcq.prepareQuery(ctx); err != nil { |
| 233 | return 0, err |
| 234 | } |
| 235 | return withInterceptors[int](ctx, gcq, querierCount[*GitCommitQuery](), gcq.inters) |
| 236 | } |
| 237 | |
| 238 | // CountX is like Count, but panics if an error occurs. |
| 239 | func (gcq *GitCommitQuery) CountX(ctx context.Context) int { |
no test coverage detected