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

Method Query

ent/client.go:1636–1642  ·  view source on GitHub ↗

Query returns a query builder for Node.

()

Source from the content-addressed store, hash-verified

1634
1635// Query returns a query builder for Node.
1636func (c *NodeClient) Query() *NodeQuery {
1637 return &NodeQuery{
1638 config: c.config,
1639 ctx: &QueryContext{Type: TypeNode},
1640 inters: c.Interceptors(),
1641 }
1642}
1643
1644// Get returns a Node entity by its id.
1645func (c *NodeClient) Get(ctx context.Context, id int) (*Node, error) {

Callers 1

GetMethod · 0.95

Calls 1

InterceptorsMethod · 0.95

Tested by

no test coverage detected