SaveX calls Save and panics if Save returns an error.
(ctx context.Context)
| 159 | |
| 160 | // SaveX calls Save and panics if Save returns an error. |
| 161 | func (_c *UserCreate) SaveX(ctx context.Context) *User { |
| 162 | v, err := _c.Save(ctx) |
| 163 | if err != nil { |
| 164 | panic(err) |
| 165 | } |
| 166 | return v |
| 167 | } |
| 168 | |
| 169 | // Exec executes the query. |
| 170 | func (_c *UserCreate) Exec(ctx context.Context) error { |