SaveX is like Save, but panics if an error occurs.
(ctx context.Context)
| 229 | |
| 230 | // SaveX is like Save, but panics if an error occurs. |
| 231 | func (nu *NodeUpdate) SaveX(ctx context.Context) int { |
| 232 | affected, err := nu.Save(ctx) |
| 233 | if err != nil { |
| 234 | panic(err) |
| 235 | } |
| 236 | return affected |
| 237 | } |
| 238 | |
| 239 | // Exec executes the query. |
| 240 | func (nu *NodeUpdate) Exec(ctx context.Context) error { |