SaveX calls Save and panics if Save returns an error.
(ctx context.Context)
| 201 | |
| 202 | // SaveX calls Save and panics if Save returns an error. |
| 203 | func (ec *EntityCreate) SaveX(ctx context.Context) *Entity { |
| 204 | v, err := ec.Save(ctx) |
| 205 | if err != nil { |
| 206 | panic(err) |
| 207 | } |
| 208 | return v |
| 209 | } |
| 210 | |
| 211 | // Exec executes the query. |
| 212 | func (ec *EntityCreate) Exec(ctx context.Context) error { |