Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
()
| 3970 | // Client returns a new `ent.Client` from the mutation. If the mutation was |
| 3971 | // executed in a transaction (ent.Tx), a transactional client is returned. |
| 3972 | func (m GroupMutation) Client() *Client { |
| 3973 | client := &Client{config: m.config} |
| 3974 | client.init() |
| 3975 | return client |
| 3976 | } |
| 3977 | |
| 3978 | // Tx returns an `ent.Tx` for mutations that were executed in transactions; |
| 3979 | // it returns an error otherwise. |