Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
()
| 137 | // Client returns a new `ent.Client` from the mutation. If the mutation was |
| 138 | // executed in a transaction (ent.Tx), a transactional client is returned. |
| 139 | func (m DavAccountMutation) Client() *Client { |
| 140 | client := &Client{config: m.config} |
| 141 | client.init() |
| 142 | return client |
| 143 | } |
| 144 | |
| 145 | // Tx returns an `ent.Tx` for mutations that were executed in transactions; |
| 146 | // it returns an error otherwise. |