SaveX is like Save, but panics if an error occurs.
(ctx context.Context)
| 878 | |
| 879 | // SaveX is like Save, but panics if an error occurs. |
| 880 | func (scb *ShareCreateBulk) SaveX(ctx context.Context) []*Share { |
| 881 | v, err := scb.Save(ctx) |
| 882 | if err != nil { |
| 883 | panic(err) |
| 884 | } |
| 885 | return v |
| 886 | } |
| 887 | |
| 888 | // Exec executes the query. |
| 889 | func (scb *ShareCreateBulk) Exec(ctx context.Context) error { |