MCPcopy Create free account
hub / github.com/an0nfunc/ALHP / SetVersion

Method SetVersion

ent/dbpackage_update.go:715–718  ·  view source on GitHub ↗

SetVersion sets the "version" field.

(v string)

Source from the content-addressed store, hash-verified

713 if _, ok := err.(*sqlgraph.NotFoundError); ok {
714 err = &NotFoundError{dbpackage.Label}
715 } else if sqlgraph.IsConstraintError(err) {
716 err = &ConstraintError{msg: err.Error(), wrap: err}
717 }
718 return 0, err
719 }
720 _u.mutation.done = true
721 return _node, nil

Callers 1

SetNillableVersionMethod · 0.95

Calls 1

SetVersionMethod · 0.45

Tested by

no test coverage detected