MCPcopy
hub / github.com/cloudreve/cloudreve / DeleteOneID

Method DeleteOneID

ent/client.go:897–902  ·  view source on GitHub ↗

DeleteOneID returns a builder for deleting the given entity by its id.

(id int)

Source from the content-addressed store, hash-verified

895
896// DeleteOneID returns a builder for deleting the given entity by its id.
897func (c *FileClient) DeleteOneID(id int) *FileDeleteOne {
898 builder := c.Delete().Where(file.ID(id))
899 builder.mutation.id = &id
900 builder.mutation.op = OpDeleteOne
901 return &FileDeleteOne{builder}
902}
903
904// Query returns a query builder for File.
905func (c *FileClient) Query() *FileQuery {

Callers 7

DeleteOneMethod · 0.95
DeleteMethod · 0.45
DeleteMethod · 0.45
DeleteMethod · 0.45
DeleteMethod · 0.45
DeleteMethod · 0.45
DeleteMethod · 0.45

Calls 3

DeleteMethod · 0.95
IDFunction · 0.92
WhereMethod · 0.45

Tested by

no test coverage detected