Save creates the GitCommit in the database.
(ctx context.Context)
| 161 | |
| 162 | // Save creates the GitCommit in the database. |
| 163 | func (gcc *GitCommitCreate) Save(ctx context.Context) (*GitCommit, error) { |
| 164 | gcc.defaults() |
| 165 | return withHooks(ctx, gcc.sqlSave, gcc.mutation, gcc.hooks) |
| 166 | } |
| 167 | |
| 168 | // SaveX calls Save and panics if Save returns an error. |
| 169 | func (gcc *GitCommitCreate) SaveX(ctx context.Context) *GitCommit { |