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

Method Client

ent/mutation.go:3070–3074  ·  view source on GitHub ↗

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

()

Source from the content-addressed store, hash-verified

3068// Client returns a new `ent.Client` from the mutation. If the mutation was
3069// executed in a transaction (ent.Tx), a transactional client is returned.
3070func (m FileMutation) Client() *Client {
3071 client := &Client{config: m.config}
3072 client.init()
3073 return client
3074}
3075
3076// Tx returns an `ent.Tx` for mutations that were executed in transactions;
3077// it returns an error otherwise.

Callers 15

IDsMethod · 0.95
withDavAccountIDFunction · 0.45
withDirectLinkIDFunction · 0.45
withEntityIDFunction · 0.45
withFileIDFunction · 0.45
withFsEventIDFunction · 0.45
withGroupIDFunction · 0.45
withMetadataIDFunction · 0.45
withNodeIDFunction · 0.45
withOAuthClientIDFunction · 0.45
withOAuthGrantIDFunction · 0.45
withPasskeyIDFunction · 0.45

Calls 1

initMethod · 0.95

Tested by

no test coverage detected