ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 114 | |
| 115 | // ExecX is like Exec, but panics if an error occurs. |
| 116 | func (sc *SettingCreate) ExecX(ctx context.Context) { |
| 117 | if err := sc.Exec(ctx); err != nil { |
| 118 | panic(err) |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | // defaults sets the default values of the builder before save. |
| 123 | func (sc *SettingCreate) defaults() error { |