Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
()
| 993 | // Client returns a new `ent.Client` from the mutation. If the mutation was |
| 994 | // executed in a transaction (ent.Tx), a transactional client is returned. |
| 995 | func (m DirectLinkMutation) Client() *Client { |
| 996 | client := &Client{config: m.config} |
| 997 | client.init() |
| 998 | return client |
| 999 | } |
| 1000 | |
| 1001 | // Tx returns an `ent.Tx` for mutations that were executed in transactions; |
| 1002 | // it returns an error otherwise. |