Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
()
| 14290 | // Client returns a new `ent.Client` from the mutation. If the mutation was |
| 14291 | // executed in a transaction (ent.Tx), a transactional client is returned. |
| 14292 | func (m UserMutation) Client() *Client { |
| 14293 | client := &Client{config: m.config} |
| 14294 | client.init() |
| 14295 | return client |
| 14296 | } |
| 14297 | |
| 14298 | // Tx returns an `ent.Tx` for mutations that were executed in transactions; |
| 14299 | // it returns an error otherwise. |
no test coverage detected