Save creates the User in the database.
(ctx context.Context)
| 153 | |
| 154 | // Save creates the User in the database. |
| 155 | func (_c *UserCreate) Save(ctx context.Context) (*User, error) { |
| 156 | _c.defaults() |
| 157 | return withHooks(ctx, _c.sqlSave, _c.mutation, _c.hooks) |
| 158 | } |
| 159 | |
| 160 | // SaveX calls Save and panics if Save returns an error. |
| 161 | func (_c *UserCreate) SaveX(ctx context.Context) *User { |