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

Method Query

ent/client.go:2558–2564  ·  view source on GitHub ↗

Query returns a query builder for StoragePolicy.

()

Source from the content-addressed store, hash-verified

2556
2557// Query returns a query builder for StoragePolicy.
2558func (c *StoragePolicyClient) Query() *StoragePolicyQuery {
2559 return &StoragePolicyQuery{
2560 config: c.config,
2561 ctx: &QueryContext{Type: TypeStoragePolicy},
2562 inters: c.Interceptors(),
2563 }
2564}
2565
2566// Get returns a StoragePolicy entity by its id.
2567func (c *StoragePolicyClient) Get(ctx context.Context, id int) (*StoragePolicy, error) {

Callers 1

GetMethod · 0.95

Calls 1

InterceptorsMethod · 0.95

Tested by

no test coverage detected