Count returns the count of the given query.
(ctx context.Context)
| 223 | |
| 224 | // Count returns the count of the given query. |
| 225 | func (tq *TaskQuery) Count(ctx context.Context) (int, error) { |
| 226 | ctx = setContextOp(ctx, tq.ctx, "Count") |
| 227 | if err := tq.prepareQuery(ctx); err != nil { |
| 228 | return 0, err |
| 229 | } |
| 230 | return withInterceptors[int](ctx, tq, querierCount[*TaskQuery](), tq.inters) |
| 231 | } |
| 232 | |
| 233 | // CountX is like Count, but panics if an error occurs. |
| 234 | func (tq *TaskQuery) CountX(ctx context.Context) int { |
no test coverage detected