MCPcopy Index your code
hub / github.com/chainloop-dev/chainloop / Select

Method Select

app/controlplane/pkg/data/ent/user_query.go:371–377  ·  view source on GitHub ↗

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct { Email string `json:"email,omitempty"` } client.User.Query(). Select(user.FieldEmail). Scan(ctx, &v)

(fields ...string)

Source from the content-addressed store, hash-verified

369// Select(user.FieldEmail).
370// Scan(ctx, &v)
371func (_q *UserQuery) Select(fields ...string) *UserSelect {
372 _q.ctx.Fields = append(_q.ctx.Fields, fields...)
373 sbuild := &UserSelect{UserQuery: _q}
374 sbuild.label = user.Label
375 sbuild.flds, sbuild.scan = &_q.ctx.Fields, sbuild.Scan
376 return sbuild
377}
378
379// Aggregate returns a UserSelect configured with the given aggregations.
380func (_q *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect {

Callers 15

IDsMethod · 0.95
AggregateMethod · 0.95
ModifyMethod · 0.95
contractInOrgQueryFunction · 0.45
getWorkflowReferencesFunction · 0.45
ListProjectsByGroupMethod · 0.45
FindPublicByDigestMethod · 0.45
IsPublicMethod · 0.45
SaveMethod · 0.45
projectScopePredicateMethod · 0.45
DeleteMethod · 0.45
DailyRunsCountMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected