Save executes the query and returns the number of nodes affected by the update operation.
(ctx context.Context)
| 210 | |
| 211 | // Save executes the query and returns the number of nodes affected by the update operation. |
| 212 | func (gcu *GitCommitUpdate) Save(ctx context.Context) (int, error) { |
| 213 | gcu.defaults() |
| 214 | return withHooks(ctx, gcu.sqlSave, gcu.mutation, gcu.hooks) |
| 215 | } |
| 216 | |
| 217 | // SaveX is like Save, but panics if an error occurs. |
| 218 | func (gcu *GitCommitUpdate) SaveX(ctx context.Context) int { |