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

Function NewEntityClient

ent/client.go:642–644  ·  view source on GitHub ↗

NewEntityClient returns a client for the Entity from the given config.

(c config)

Source from the content-addressed store, hash-verified

640
641// NewEntityClient returns a client for the Entity from the given config.
642func NewEntityClient(c config) *EntityClient {
643 return &EntityClient{config: c}
644}
645
646// Use adds a list of mutation hooks to the hooks stack.
647// A call to `Use(f, g, h)` equals to `entity.Hooks(f(g(h())))`.

Callers 8

initMethod · 0.85
QueryFileMethod · 0.85
QueryUserMethod · 0.85
QueryStoragePolicyMethod · 0.85
UpdateMethod · 0.85
initMethod · 0.85
TxMethod · 0.85
BeginTxMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected