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

Method AddField

ent/mutation.go:5177–5181  ·  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

5175// the field is not defined in the schema, or if the type mismatched the field
5176// type.
5177func (m *FsEventMutation) AddField(name string, value ent.Value) error {
5178 switch name {
5179 }
5180 return fmt.Errorf("unknown FsEvent numeric field %s", name)
5181}
5182
5183// ClearedFields returns all nullable fields that were cleared during this
5184// mutation.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected