SaveX calls Save and panics if Save returns an error.
(ctx context.Context)
| 117 | |
| 118 | // SaveX calls Save and panics if Save returns an error. |
| 119 | func (mc *MetadataCreate) SaveX(ctx context.Context) *Metadata { |
| 120 | v, err := mc.Save(ctx) |
| 121 | if err != nil { |
| 122 | panic(err) |
| 123 | } |
| 124 | return v |
| 125 | } |
| 126 | |
| 127 | // Exec executes the query. |
| 128 | func (mc *MetadataCreate) Exec(ctx context.Context) error { |