ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 184 | |
| 185 | // ExecX is like Exec, but panics if an error occurs. |
| 186 | func (tc *TaskCreate) ExecX(ctx context.Context) { |
| 187 | if err := tc.Exec(ctx); err != nil { |
| 188 | panic(err) |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | // defaults sets the default values of the builder before save. |
| 193 | func (tc *TaskCreate) defaults() error { |