Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
()
| 10911 | // Client returns a new `ent.Client` from the mutation. If the mutation was |
| 10912 | // executed in a transaction (ent.Tx), a transactional client is returned. |
| 10913 | func (m SettingMutation) Client() *Client { |
| 10914 | client := &Client{config: m.config} |
| 10915 | client.init() |
| 10916 | return client |
| 10917 | } |
| 10918 | |
| 10919 | // Tx returns an `ent.Tx` for mutations that were executed in transactions; |
| 10920 | // it returns an error otherwise. |