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

Method Select

ent/user_update.go:1553–1556  ·  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

1551// Select allows selecting one or more fields (columns) of the returned entity.
1552// The default is selecting all fields defined in the entity schema.
1553func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne {
1554 uuo.fields = append([]string{field}, fields...)
1555 return uuo
1556}
1557
1558// Save executes the query and returns the updated User entity.
1559func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected