MCPcopy
hub / github.com/Wei-Shaw/sub2api / Save

Method Save

backend/ent/userallowedgroup_create.go:69–72  ·  view source on GitHub ↗

Save creates the UserAllowedGroup in the database.

(ctx context.Context)

Source from the content-addressed store, hash-verified

67
68// Save creates the UserAllowedGroup in the database.
69func (_c *UserAllowedGroupCreate) Save(ctx context.Context) (*UserAllowedGroup, error) {
70 _c.defaults()
71 return withHooks(ctx, _c.sqlSave, _c.mutation, _c.hooks)
72}
73
74// SaveX calls Save and panics if Save returns an error.
75func (_c *UserAllowedGroupCreate) SaveX(ctx context.Context) *UserAllowedGroup {

Callers 2

SaveXMethod · 0.95
ExecMethod · 0.95

Calls 2

defaultsMethod · 0.95
withHooksFunction · 0.85

Tested by

no test coverage detected