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

Method Select

ent/setting_update.go:258–261  ·  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

256// Select allows selecting one or more fields (columns) of the returned entity.
257// The default is selecting all fields defined in the entity schema.
258func (suo *SettingUpdateOne) Select(field string, fields ...string) *SettingUpdateOne {
259 suo.fields = append([]string{field}, fields...)
260 return suo
261}
262
263// Save executes the query and returns the updated Setting entity.
264func (suo *SettingUpdateOne) Save(ctx context.Context) (*Setting, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected