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

Method WithEntities

ent/file_query.go:514–521  ·  view source on GitHub ↗

WithEntities tells the query-builder to eager-load the nodes that are connected to the "entities" edge. The optional arguments are used to configure the query builder of the edge.

(opts ...func(*EntityQuery))

Source from the content-addressed store, hash-verified

512// WithEntities tells the query-builder to eager-load the nodes that are connected to
513// the "entities" edge. The optional arguments are used to configure the query builder of the edge.
514func (fq *FileQuery) WithEntities(opts ...func(*EntityQuery)) *FileQuery {
515 query := (&EntityClient{config: fq.config}).Query()
516 for _, opt := range opts {
517 opt(query)
518 }
519 fq.withEntities = query
520 return fq
521}
522
523// WithShares tells the query-builder to eager-load the nodes that are connected to
524// the "shares" edge. The optional arguments are used to configure the query builder of the edge.

Callers 3

DeleteByUserMethod · 0.45
withFileEagerLoadingFunction · 0.45
CalculateStorageMethod · 0.45

Calls 1

QueryMethod · 0.45

Tested by

no test coverage detected