MCPcopy
hub / github.com/jmoiron/sqlx / Rebind

Method Rebind

sqlx.go:404–406  ·  view source on GitHub ↗

Rebind a query within a transaction's bindvar type.

(query string)

Source from the content-addressed store, hash-verified

402
403// Rebind a query within a transaction's bindvar type.
404func (tx *Tx) Rebind(query string) string {
405 return Rebind(BindType(tx.driverName), query)
406}
407
408// Unsafe returns a version of Tx which will silently succeed to scan when
409// columns in the SQL result have no fields in the destination struct.

Callers

nothing calls this directly

Calls 2

RebindFunction · 0.85
BindTypeFunction · 0.85

Tested by

no test coverage detected