MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / AddField

Method AddField

ent/mutation.go:11315–11319  ·  view source on GitHub ↗

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

(name string, value ent.Value)

Source from the content-addressed store, hash-verified

11313// the field is not defined in the schema, or if the type mismatched the field
11314// type.
11315func (m *SettingMutation) AddField(name string, value ent.Value) error {
11316 switch name {
11317 }
11318 return fmt.Errorf("unknown Setting numeric field %s", name)
11319}
11320
11321// ClearedFields returns all nullable fields that were cleared during this
11322// mutation.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected