Exec executes the query.
(ctx context.Context)
| 238 | |
| 239 | // Exec executes the query. |
| 240 | func (nu *NodeUpdate) Exec(ctx context.Context) error { |
| 241 | _, err := nu.Save(ctx) |
| 242 | return err |
| 243 | } |
| 244 | |
| 245 | // ExecX is like Exec, but panics if an error occurs. |
| 246 | func (nu *NodeUpdate) ExecX(ctx context.Context) { |