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)
| 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. |
| 258 | func (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. |
| 264 | func (suo *SettingUpdateOne) Save(ctx context.Context) (*Setting, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected