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

Method Query

ent/client.go:905–911  ·  view source on GitHub ↗

Query returns a query builder for File.

()

Source from the content-addressed store, hash-verified

903
904// Query returns a query builder for File.
905func (c *FileClient) Query() *FileQuery {
906 return &FileQuery{
907 config: c.config,
908 ctx: &QueryContext{Type: TypeFile},
909 inters: c.Interceptors(),
910 }
911}
912
913// Get returns a File entity by its id.
914func (c *FileClient) Get(ctx context.Context, id int) (*File, error) {

Callers 15

GetMethod · 0.95
QueryOwnerMethod · 0.45
QueryFileMethod · 0.45
QueryFileMethod · 0.45
QueryUserMethod · 0.45
QueryStoragePolicyMethod · 0.45
QueryOwnerMethod · 0.45
QueryStoragePoliciesMethod · 0.45
QueryParentMethod · 0.45
QueryChildrenMethod · 0.45
QueryMetadataMethod · 0.45
QueryEntitiesMethod · 0.45

Calls 1

InterceptorsMethod · 0.95

Tested by

no test coverage detected