Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
()
| 8278 | // Client returns a new `ent.Client` from the mutation. If the mutation was |
| 8279 | // executed in a transaction (ent.Tx), a transactional client is returned. |
| 8280 | func (m OAuthClientMutation) Client() *Client { |
| 8281 | client := &Client{config: m.config} |
| 8282 | client.init() |
| 8283 | return client |
| 8284 | } |
| 8285 | |
| 8286 | // Tx returns an `ent.Tx` for mutations that were executed in transactions; |
| 8287 | // it returns an error otherwise. |