ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 216 | |
| 217 | // ExecX is like Exec, but panics if an error occurs. |
| 218 | func (ec *EntityCreate) ExecX(ctx context.Context) { |
| 219 | if err := ec.Exec(ctx); err != nil { |
| 220 | panic(err) |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | // defaults sets the default values of the builder before save. |
| 225 | func (ec *EntityCreate) defaults() error { |