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

Method GetClient

inventory/setting.go:47–49  ·  view source on GitHub ↗

GetClient gets the client for the setting client

()

Source from the content-addressed store, hash-verified

45
46// GetClient gets the client for the setting client
47func (c *settingClient) GetClient() *ent.Client {
48 return c.client
49}
50
51func (c *settingClient) Get(ctx context.Context, name string) (string, error) {
52 s, err := c.client.Setting.Query().Where(setting.Name(name)).Only(ctx)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected