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)
| 548 | // Select allows selecting one or more fields (columns) of the returned entity. |
| 549 | // The default is selecting all fields defined in the entity schema. |
| 550 | func (gcuo *GitCommitUpdateOne) Select(field string, fields ...string) *GitCommitUpdateOne { |
| 551 | gcuo.fields = append([]string{field}, fields...) |
| 552 | return gcuo |
| 553 | } |
| 554 | |
| 555 | // Save executes the query and returns the updated GitCommit entity. |
| 556 | func (gcuo *GitCommitUpdateOne) Save(ctx context.Context) (*GitCommit, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected