SaveX is like Save, but panics if an error occurs.
(ctx context.Context)
| 270 | |
| 271 | // SaveX is like Save, but panics if an error occurs. |
| 272 | func (suo *SettingUpdateOne) SaveX(ctx context.Context) *Setting { |
| 273 | node, err := suo.Save(ctx) |
| 274 | if err != nil { |
| 275 | panic(err) |
| 276 | } |
| 277 | return node |
| 278 | } |
| 279 | |
| 280 | // Exec executes the query on the entity. |
| 281 | func (suo *SettingUpdateOne) Exec(ctx context.Context) error { |