(ctx context.Context)
| 434 | } |
| 435 | |
| 436 | func (nq *NodeQuery) sqlCount(ctx context.Context) (int, error) { |
| 437 | _spec := nq.querySpec() |
| 438 | _spec.Node.Columns = nq.ctx.Fields |
| 439 | if len(nq.ctx.Fields) > 0 { |
| 440 | _spec.Unique = nq.ctx.Unique != nil && *nq.ctx.Unique |
| 441 | } |
| 442 | return sqlgraph.CountNodes(ctx, nq.driver, _spec) |
| 443 | } |
| 444 | |
| 445 | func (nq *NodeQuery) querySpec() *sqlgraph.QuerySpec { |
| 446 | _spec := sqlgraph.NewQuerySpec(node.Table, node.Columns, sqlgraph.NewFieldSpec(node.FieldID, field.TypeInt)) |
no test coverage detected