MCPcopy Create free account
hub / github.com/Comfy-Org/registry-backend / Save

Method Save

ent/gitcommit_create.go:163–166  ·  view source on GitHub ↗

Save creates the GitCommit in the database.

(ctx context.Context)

Source from the content-addressed store, hash-verified

161
162// Save creates the GitCommit in the database.
163func (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.
169func (gcc *GitCommitCreate) SaveX(ctx context.Context) *GitCommit {

Callers 3

SaveXMethod · 0.95
ExecMethod · 0.95
IDMethod · 0.45

Calls 2

defaultsMethod · 0.95
withHooksFunction · 0.85

Tested by

no test coverage detected