Exec executes the query.
(ctx context.Context)
| 82 | |
| 83 | // Exec executes the query. |
| 84 | func (mc *ModelCreate) Exec(ctx context.Context) error { |
| 85 | _, err := mc.Save(ctx) |
| 86 | return err |
| 87 | } |
| 88 | |
| 89 | // ExecX is like Exec, but panics if an error occurs. |
| 90 | func (mc *ModelCreate) ExecX(ctx context.Context) { |