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

Method Select

ent/gitcommit_update.go:550–553  ·  view source on GitHub ↗

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

(field string, fields ...string)

Source from the content-addressed store, hash-verified

548// Select allows selecting one or more fields (columns) of the returned entity.
549// The default is selecting all fields defined in the entity schema.
550func (gcuo *GitCommitUpdateOne) Select(field string, fields ...string) *GitCommitUpdateOne {
551 gcuo.fields = append([]string{field}, fields...)
552 return gcuo
553}
554
555// Save executes the query and returns the updated GitCommit entity.
556func (gcuo *GitCommitUpdateOne) Save(ctx context.Context) (*GitCommit, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected