SaveX calls Save and panics if Save returns an error.
(ctx context.Context)
| 99 | |
| 100 | // SaveX calls Save and panics if Save returns an error. |
| 101 | func (sc *SettingCreate) SaveX(ctx context.Context) *Setting { |
| 102 | v, err := sc.Save(ctx) |
| 103 | if err != nil { |
| 104 | panic(err) |
| 105 | } |
| 106 | return v |
| 107 | } |
| 108 | |
| 109 | // Exec executes the query. |
| 110 | func (sc *SettingCreate) Exec(ctx context.Context) error { |