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

Method Query

ent/client.go:571–577  ·  view source on GitHub ↗

Query returns a query builder for DirectLink.

()

Source from the content-addressed store, hash-verified

569
570// Query returns a query builder for DirectLink.
571func (c *DirectLinkClient) Query() *DirectLinkQuery {
572 return &DirectLinkQuery{
573 config: c.config,
574 ctx: &QueryContext{Type: TypeDirectLink},
575 inters: c.Interceptors(),
576 }
577}
578
579// Get returns a DirectLink entity by its id.
580func (c *DirectLinkClient) Get(ctx context.Context, id int) (*DirectLink, error) {

Callers 1

GetMethod · 0.95

Calls 1

InterceptorsMethod · 0.95

Tested by

no test coverage detected