Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
()
| 151 | // Client returns a new `ent.Client` from the mutation. If the mutation was |
| 152 | // executed in a transaction (ent.Tx), a transactional client is returned. |
| 153 | func (m APITokenMutation) Client() *Client { |
| 154 | client := &Client{config: m.config} |
| 155 | client.init() |
| 156 | return client |
| 157 | } |
| 158 | |
| 159 | // Tx returns an `ent.Tx` for mutations that were executed in transactions; |
| 160 | // it returns an error otherwise. |