MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / Save

Method Save

app/controlplane/pkg/data/ent/user_create.go:155–158  ·  view source on GitHub ↗

Save creates the User in the database.

(ctx context.Context)

Source from the content-addressed store, hash-verified

153
154// Save creates the User in the database.
155func (_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.
161func (_c *UserCreate) SaveX(ctx context.Context) *User {

Callers 2

SaveXMethod · 0.95
ExecMethod · 0.95

Calls 2

defaultsMethod · 0.95
withHooksFunction · 0.85

Tested by

no test coverage detected