MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / UpdateOne

Method UpdateOne

ent/client.go:874–877  ·  view source on GitHub ↗

UpdateOne returns an update builder for the given entity.

(f *File)

Source from the content-addressed store, hash-verified

872
873// UpdateOne returns an update builder for the given entity.
874func (c *FileClient) UpdateOne(f *File) *FileUpdateOne {
875 mutation := newFileMutation(c.config, OpUpdateOne, withFile(f))
876 return &FileUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation}
877}
878
879// UpdateOneID returns an update builder for the given id.
880func (c *FileClient) UpdateOneID(id int) *FileUpdateOne {

Callers 15

UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45

Calls 3

HooksMethod · 0.95
newFileMutationFunction · 0.85
withFileFunction · 0.85

Tested by

no test coverage detected