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

Method Select

ent/metadata_update.go:365–368  ·  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

363// Select allows selecting one or more fields (columns) of the returned entity.
364// The default is selecting all fields defined in the entity schema.
365func (muo *MetadataUpdateOne) Select(field string, fields ...string) *MetadataUpdateOne {
366 muo.fields = append([]string{field}, fields...)
367 return muo
368}
369
370// Save executes the query and returns the updated Metadata entity.
371func (muo *MetadataUpdateOne) Save(ctx context.Context) (*Metadata, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected