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

Method Query

ent/client.go:2391–2397  ·  view source on GitHub ↗

Query returns a query builder for Share.

()

Source from the content-addressed store, hash-verified

2389
2390// Query returns a query builder for Share.
2391func (c *ShareClient) Query() *ShareQuery {
2392 return &ShareQuery{
2393 config: c.config,
2394 ctx: &QueryContext{Type: TypeShare},
2395 inters: c.Interceptors(),
2396 }
2397}
2398
2399// Get returns a Share entity by its id.
2400func (c *ShareClient) Get(ctx context.Context, id int) (*Share, error) {

Callers 1

GetMethod · 0.95

Calls 1

InterceptorsMethod · 0.95

Tested by

no test coverage detected