Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
()
| 8431 | // Client returns a new `ent.Client` from the mutation. If the mutation was |
| 8432 | // executed in a transaction (ent.Tx), a transactional client is returned. |
| 8433 | func (m LockMutation) Client() *Client { |
| 8434 | client := &Client{config: m.config} |
| 8435 | client.init() |
| 8436 | return client |
| 8437 | } |
| 8438 | |
| 8439 | // Tx returns an `ent.Tx` for mutations that were executed in transactions; |
| 8440 | // it returns an error otherwise. |
no test coverage detected