Exec executes the query.
(ctx context.Context)
| 126 | |
| 127 | // Exec executes the query. |
| 128 | func (mc *MetadataCreate) Exec(ctx context.Context) error { |
| 129 | _, err := mc.Save(ctx) |
| 130 | return err |
| 131 | } |
| 132 | |
| 133 | // ExecX is like Exec, but panics if an error occurs. |
| 134 | func (mc *MetadataCreate) ExecX(ctx context.Context) { |