MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / Select

Method Select

ent/task_update.go:441–444  ·  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

439// Select allows selecting one or more fields (columns) of the returned entity.
440// The default is selecting all fields defined in the entity schema.
441func (tuo *TaskUpdateOne) Select(field string, fields ...string) *TaskUpdateOne {
442 tuo.fields = append([]string{field}, fields...)
443 return tuo
444}
445
446// Save executes the query and returns the updated Task entity.
447func (tuo *TaskUpdateOne) Save(ctx context.Context) (*Task, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected