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

Method Query

ent/client.go:722–728  ·  view source on GitHub ↗

Query returns a query builder for Entity.

()

Source from the content-addressed store, hash-verified

720
721// Query returns a query builder for Entity.
722func (c *EntityClient) Query() *EntityQuery {
723 return &EntityQuery{
724 config: c.config,
725 ctx: &QueryContext{Type: TypeEntity},
726 inters: c.Interceptors(),
727 }
728}
729
730// Get returns a Entity entity by its id.
731func (c *EntityClient) Get(ctx context.Context, id int) (*Entity, error) {

Callers 1

GetMethod · 0.95

Calls 1

InterceptorsMethod · 0.95

Tested by

no test coverage detected