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

Method Select

ent/file_update.go:1307–1310  ·  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

1305// Select allows selecting one or more fields (columns) of the returned entity.
1306// The default is selecting all fields defined in the entity schema.
1307func (fuo *FileUpdateOne) Select(field string, fields ...string) *FileUpdateOne {
1308 fuo.fields = append([]string{field}, fields...)
1309 return fuo
1310}
1311
1312// Save executes the query and returns the updated File entity.
1313func (fuo *FileUpdateOne) Save(ctx context.Context) (*File, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected