SaveX calls Save and panics if Save returns an error.
(ctx context.Context)
| 196 | |
| 197 | // SaveX calls Save and panics if Save returns an error. |
| 198 | func (sc *ShareCreate) SaveX(ctx context.Context) *Share { |
| 199 | v, err := sc.Save(ctx) |
| 200 | if err != nil { |
| 201 | panic(err) |
| 202 | } |
| 203 | return v |
| 204 | } |
| 205 | |
| 206 | // Exec executes the query. |
| 207 | func (sc *ShareCreate) Exec(ctx context.Context) error { |