Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
()
| 3068 | // Client returns a new `ent.Client` from the mutation. If the mutation was |
| 3069 | // executed in a transaction (ent.Tx), a transactional client is returned. |
| 3070 | func (m FileMutation) Client() *Client { |
| 3071 | client := &Client{config: m.config} |
| 3072 | client.init() |
| 3073 | return client |
| 3074 | } |
| 3075 | |
| 3076 | // Tx returns an `ent.Tx` for mutations that were executed in transactions; |
| 3077 | // it returns an error otherwise. |
no test coverage detected