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)
| 576 | // Select allows selecting one or more fields (columns) of the returned entity. |
| 577 | // The default is selecting all fields defined in the entity schema. |
| 578 | func (ocuo *OAuthClientUpdateOne) Select(field string, fields ...string) *OAuthClientUpdateOne { |
| 579 | ocuo.fields = append([]string{field}, fields...) |
| 580 | return ocuo |
| 581 | } |
| 582 | |
| 583 | // Save executes the query and returns the updated OAuthClient entity. |
| 584 | func (ocuo *OAuthClientUpdateOne) Save(ctx context.Context) (*OAuthClient, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected