Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
()
| 6467 | // Client returns a new `ent.Client` from the mutation. If the mutation was |
| 6468 | // executed in a transaction (ent.Tx), a transactional client is returned. |
| 6469 | func (m MetadataMutation) Client() *Client { |
| 6470 | client := &Client{config: m.config} |
| 6471 | client.init() |
| 6472 | return client |
| 6473 | } |
| 6474 | |
| 6475 | // Tx returns an `ent.Tx` for mutations that were executed in transactions; |
| 6476 | // it returns an error otherwise. |