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

Method Query

ent/client.go:2757–2763  ·  view source on GitHub ↗

Query returns a query builder for Task.

()

Source from the content-addressed store, hash-verified

2755
2756// Query returns a query builder for Task.
2757func (c *TaskClient) Query() *TaskQuery {
2758 return &TaskQuery{
2759 config: c.config,
2760 ctx: &QueryContext{Type: TypeTask},
2761 inters: c.Interceptors(),
2762 }
2763}
2764
2765// Get returns a Task entity by its id.
2766func (c *TaskClient) Get(ctx context.Context, id int) (*Task, error) {

Callers 1

GetMethod · 0.95

Calls 1

InterceptorsMethod · 0.95

Tested by

no test coverage detected