Save creates the NodeVersion in the database.
(ctx context.Context)
| 218 | |
| 219 | // Save creates the NodeVersion in the database. |
| 220 | func (nvc *NodeVersionCreate) Save(ctx context.Context) (*NodeVersion, error) { |
| 221 | nvc.defaults() |
| 222 | return withHooks(ctx, nvc.sqlSave, nvc.mutation, nvc.hooks) |
| 223 | } |
| 224 | |
| 225 | // SaveX calls Save and panics if Save returns an error. |
| 226 | func (nvc *NodeVersionCreate) SaveX(ctx context.Context) *NodeVersion { |