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