Count returns the count of the given query.
(ctx context.Context)
| 199 | |
| 200 | // Count returns the count of the given query. |
| 201 | func (sq *SettingQuery) Count(ctx context.Context) (int, error) { |
| 202 | ctx = setContextOp(ctx, sq.ctx, "Count") |
| 203 | if err := sq.prepareQuery(ctx); err != nil { |
| 204 | return 0, err |
| 205 | } |
| 206 | return withInterceptors[int](ctx, sq, querierCount[*SettingQuery](), sq.inters) |
| 207 | } |
| 208 | |
| 209 | // CountX is like Count, but panics if an error occurs. |
| 210 | func (sq *SettingQuery) CountX(ctx context.Context) int { |
no test coverage detected