Save creates the Alert in the database.
(ctx context.Context)
| 439 | |
| 440 | // Save creates the Alert in the database. |
| 441 | func (_c *AlertCreate) Save(ctx context.Context) (*Alert, error) { |
| 442 | _c.defaults() |
| 443 | return withHooks(ctx, _c.sqlSave, _c.mutation, _c.hooks) |
| 444 | } |
| 445 | |
| 446 | // SaveX calls Save and panics if Save returns an error. |
| 447 | func (_c *AlertCreate) SaveX(ctx context.Context) *Alert { |