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

Method Client

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

4680// Client returns a new `ent.Client` from the mutation. If the mutation was
4681// executed in a transaction (ent.Tx), a transactional client is returned.
4682func (m FsEventMutation) Client() *Client {
4683 client := &Client{config: m.config}
4684 client.init()
4685 return client
4686}
4687
4688// Tx returns an `ent.Tx` for mutations that were executed in transactions;
4689// it returns an error otherwise.

Callers 1

IDsMethod · 0.95

Calls 1

initMethod · 0.95

Tested by

no test coverage detected