SaveX is like Save, but panics if an error occurs.
(ctx context.Context)
| 787 | |
| 788 | // SaveX is like Save, but panics if an error occurs. |
| 789 | func (euo *EntityUpdateOne) SaveX(ctx context.Context) *Entity { |
| 790 | node, err := euo.Save(ctx) |
| 791 | if err != nil { |
| 792 | panic(err) |
| 793 | } |
| 794 | return node |
| 795 | } |
| 796 | |
| 797 | // Exec executes the query on the entity. |
| 798 | func (euo *EntityUpdateOne) Exec(ctx context.Context) error { |