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

Method Client

ent/mutation.go:11507–11511  ·  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

11505// Client returns a new `ent.Client` from the mutation. If the mutation was
11506// executed in a transaction (ent.Tx), a transactional client is returned.
11507func (m ShareMutation) Client() *Client {
11508 client := &Client{config: m.config}
11509 client.init()
11510 return client
11511}
11512
11513// Tx returns an `ent.Tx` for mutations that were executed in transactions;
11514// it returns an error otherwise.

Callers 1

IDsMethod · 0.95

Calls 1

initMethod · 0.95

Tested by

no test coverage detected