ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 132 | |
| 133 | // ExecX is like Exec, but panics if an error occurs. |
| 134 | func (mc *MetadataCreate) ExecX(ctx context.Context) { |
| 135 | if err := mc.Exec(ctx); err != nil { |
| 136 | panic(err) |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | // defaults sets the default values of the builder before save. |
| 141 | func (mc *MetadataCreate) defaults() error { |