Save creates the AllowList in the database.
(ctx context.Context)
| 113 | |
| 114 | // Save creates the AllowList in the database. |
| 115 | func (_c *AllowListCreate) Save(ctx context.Context) (*AllowList, error) { |
| 116 | _c.defaults() |
| 117 | return withHooks(ctx, _c.sqlSave, _c.mutation, _c.hooks) |
| 118 | } |
| 119 | |
| 120 | // SaveX calls Save and panics if Save returns an error. |
| 121 | func (_c *AllowListCreate) SaveX(ctx context.Context) *AllowList { |