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

Method Select

ent/share_update.go:623–626  ·  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

621// Select allows selecting one or more fields (columns) of the returned entity.
622// The default is selecting all fields defined in the entity schema.
623func (suo *ShareUpdateOne) Select(field string, fields ...string) *ShareUpdateOne {
624 suo.fields = append([]string{field}, fields...)
625 return suo
626}
627
628// Save executes the query and returns the updated Share entity.
629func (suo *ShareUpdateOne) Save(ctx context.Context) (*Share, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected