MCPcopy Create free account
hub / github.com/bigwhite/experiments / Select

Method Select

database-access/ent/ent/instructor_query.go:330–336  ·  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 { Name string `json:"name,omitempty"` } client.Instructor.Query(). Select(instructor.FieldName). Scan(ctx, &v)

(fields ...string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected