(ctx context.Context)
| 517 | } |
| 518 | |
| 519 | func (_q *UserQuery) sqlCount(ctx context.Context) (int, error) { |
| 520 | _spec := _q.querySpec() |
| 521 | if len(_q.modifiers) > 0 { |
| 522 | _spec.Modifiers = _q.modifiers |
| 523 | } |
| 524 | _spec.Node.Columns = _q.ctx.Fields |
| 525 | if len(_q.ctx.Fields) > 0 { |
| 526 | _spec.Unique = _q.ctx.Unique != nil && *_q.ctx.Unique |
| 527 | } |
| 528 | return sqlgraph.CountNodes(ctx, _q.driver, _spec) |
| 529 | } |
| 530 | |
| 531 | func (_q *UserQuery) querySpec() *sqlgraph.QuerySpec { |
| 532 | _spec := sqlgraph.NewQuerySpec(user.Table, user.Columns, sqlgraph.NewFieldSpec(user.FieldID, field.TypeUUID)) |
no test coverage detected