SaveX is like Save, but panics if an error occurs.
(ctx context.Context)
| 1198 | |
| 1199 | // SaveX is like Save, but panics if an error occurs. |
| 1200 | func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User { |
| 1201 | v, err := ucb.Save(ctx) |
| 1202 | if err != nil { |
| 1203 | panic(err) |
| 1204 | } |
| 1205 | return v |
| 1206 | } |
| 1207 | |
| 1208 | // Exec executes the query. |
| 1209 | func (ucb *UserCreateBulk) Exec(ctx context.Context) error { |