MCPcopy
hub / github.com/ent/ent / Tx

Struct Tx

entc/integration/idtype/ent/tx.go:17–28  ·  view source on GitHub ↗

Tx is a transactional client that is created by calling Client.Tx().

Source from the content-addressed store, hash-verified

15
16// Tx is a transactional client that is created by calling Client.Tx().
17type 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
30type (
31 // Committer is the interface that wraps the Commit method.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected