MCPcopy Create free account
hub / github.com/Comfy-Org/registry-backend / Select

Method Select

ent/nodeversion_query.go:408–414  ·  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 { CreateTime time.Time `json:"create_time,omitempty"` } client.NodeVersion.Query(). Select(nodeversion.FieldCreateTime). Scan(ctx, &v)

(fields ...string)

Source from the content-addressed store, hash-verified

406// Select(nodeversion.FieldCreateTime).
407// Scan(ctx, &v)
408func (nvq *NodeVersionQuery) Select(fields ...string) *NodeVersionSelect {
409 nvq.ctx.Fields = append(nvq.ctx.Fields, fields...)
410 sbuild := &NodeVersionSelect{NodeVersionQuery: nvq}
411 sbuild.label = nodeversion.Label
412 sbuild.flds, sbuild.scan = &nvq.ctx.Fields, sbuild.Scan
413 return sbuild
414}
415
416// Aggregate returns a NodeVersionSelect configured with the given aggregations.
417func (nvq *NodeVersionQuery) Aggregate(fns ...AggregateFunc) *NodeVersionSelect {

Callers 6

IDsMethod · 0.95
AggregateMethod · 0.95
ModifyMethod · 0.95
sqlQueryMethod · 0.45
sqlScanMethod · 0.45
sqlScanMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected