MCPcopy Index your code
hub / github.com/crowdsecurity/crowdsec / Save

Method Save

pkg/database/ent/meta_create.go:105–108  ·  view source on GitHub ↗

Save creates the Meta in the database.

(ctx context.Context)

Source from the content-addressed store, hash-verified

103
104// Save creates the Meta in the database.
105func (_c *MetaCreate) Save(ctx context.Context) (*Meta, error) {
106 _c.defaults()
107 return withHooks(ctx, _c.sqlSave, _c.mutation, _c.hooks)
108}
109
110// SaveX calls Save and panics if Save returns an error.
111func (_c *MetaCreate) SaveX(ctx context.Context) *Meta {

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