SaveX is like Save, but panics if an error occurs.
(ctx context.Context)
| 873 | |
| 874 | // SaveX is like Save, but panics if an error occurs. |
| 875 | func (ncb *NodeCreateBulk) SaveX(ctx context.Context) []*Node { |
| 876 | v, err := ncb.Save(ctx) |
| 877 | if err != nil { |
| 878 | panic(err) |
| 879 | } |
| 880 | return v |
| 881 | } |
| 882 | |
| 883 | // Exec executes the query. |
| 884 | func (ncb *NodeCreateBulk) Exec(ctx context.Context) error { |