MCPcopy Create free account
hub / github.com/upper/db / NewTx

Method NewTx

internal/sqlbuilder/wrapper.go:65–65  ·  view source on GitHub ↗

NewTx wraps an active *sql.Tx transation and returns a SQLBuilder transaction. The adapter needs to be imported to the blank namespace in order for it to be used. This method is internally used by upper-db to create a builder backed by the given transaction. You may want to use your adapter's New

(*sql.Tx)

Source from the content-addressed store, hash-verified

63 // given transaction. You may want to use your adapter's NewTx function
64 // instead of this one.
65 NewTx(*sql.Tx) (Tx, error)
66
67 // Open opens a SQL database.
68 OpenDSN(db.ConnectionURL) (db.Session, error)

Callers 7

BindTxFunction · 0.65
NewTxFunction · 0.65
NewTxFunction · 0.65
NewTxFunction · 0.65
NewTxFunction · 0.65
NewTxFunction · 0.65
NewTxFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected