Query calls f(ctx, q).
(ctx context.Context, q ent.Query)
| 385 | |
| 386 | // Query calls f(ctx, q). |
| 387 | func (f SettingFunc) Query(ctx context.Context, q ent.Query) (ent.Value, error) { |
| 388 | if q, ok := q.(*ent.SettingQuery); ok { |
| 389 | return f(ctx, q) |
| 390 | } |
| 391 | return nil, fmt.Errorf("unexpected query type %T. expect *ent.SettingQuery", q) |
| 392 | } |
| 393 | |
| 394 | // The TraverseSetting type is an adapter to allow the use of ordinary function as Traverser. |
| 395 | type TraverseSetting func(context.Context, *ent.SettingQuery) error |
nothing calls this directly
no outgoing calls
no test coverage detected