ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 211 | |
| 212 | // ExecX is like Exec, but panics if an error occurs. |
| 213 | func (sc *ShareCreate) ExecX(ctx context.Context) { |
| 214 | if err := sc.Exec(ctx); err != nil { |
| 215 | panic(err) |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | // defaults sets the default values of the builder before save. |
| 220 | func (sc *ShareCreate) defaults() error { |