SaveX is like Save, but panics if an error occurs.
(ctx context.Context)
| 377 | |
| 378 | // SaveX is like Save, but panics if an error occurs. |
| 379 | func (muo *MetadataUpdateOne) SaveX(ctx context.Context) *Metadata { |
| 380 | node, err := muo.Save(ctx) |
| 381 | if err != nil { |
| 382 | panic(err) |
| 383 | } |
| 384 | return node |
| 385 | } |
| 386 | |
| 387 | // Exec executes the query on the entity. |
| 388 | func (muo *MetadataUpdateOne) Exec(ctx context.Context) error { |