SaveX is like Save, but panics if an error occurs.
(ctx context.Context)
| 632 | |
| 633 | // SaveX is like Save, but panics if an error occurs. |
| 634 | func (mcb *MetadataCreateBulk) SaveX(ctx context.Context) []*Metadata { |
| 635 | v, err := mcb.Save(ctx) |
| 636 | if err != nil { |
| 637 | panic(err) |
| 638 | } |
| 639 | return v |
| 640 | } |
| 641 | |
| 642 | // Exec executes the query. |
| 643 | func (mcb *MetadataCreateBulk) Exec(ctx context.Context) error { |