MCPcopy
hub / github.com/sqlc-dev/sqlc / WithTx

Method WithTx

examples/booktest/mysql/db.go:27–31  ·  view source on GitHub ↗
(tx *sql.Tx)

Source from the content-addressed store, hash-verified

25}
26
27func (q *Queries) WithTx(tx *sql.Tx) *Queries {
28 return &Queries{
29 db: tx,
30 }
31}

Callers 1

TestBooksFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestBooksFunction · 0.36