Tx is a transactional client that is created by calling Client.Tx().
| 15 | |
| 16 | // Tx is a transactional client that is created by calling Client.Tx(). |
| 17 | type Tx struct { |
| 18 | config |
| 19 | // User is the client for interacting with the User builders. |
| 20 | User *UserClient |
| 21 | |
| 22 | // lazily loaded. |
| 23 | client *Client |
| 24 | clientOnce sync.Once |
| 25 | // ctx lives for the life of the transaction. It is |
| 26 | // the same context used by the underlying connection. |
| 27 | ctx context.Context |
| 28 | } |
| 29 | |
| 30 | type ( |
| 31 | // Committer is the interface that wraps the Commit method. |
nothing calls this directly
no outgoing calls
no test coverage detected