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)
| 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. |
| 623 | func (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. |
| 629 | func (suo *ShareUpdateOne) Save(ctx context.Context) (*Share, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected