MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / Tx

Method Tx

app/controlplane/pkg/data/ent/tx.go:241–241  ·  view source on GitHub ↗

Tx returns the transaction wrapper (txDriver) to avoid Commit or Rollback calls from the internal builders. Should be called only by the internal builders.

(context.Context)

Source from the content-addressed store, hash-verified

239// Tx returns the transaction wrapper (txDriver) to avoid Commit or Rollback calls
240// from the internal builders. Should be called only by the internal builders.
241func (tx *txDriver) Tx(context.Context) (dialect.Tx, error) { return tx, nil }
242
243// Dialect returns the dialect of the driver we started the transaction from.
244func (tx *txDriver) Dialect() string { return tx.drv.Dialect() }

Callers 2

WithTxFunction · 0.45
newTxFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected