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

Method BindNamed

sqlx.go:415–417  ·  view source on GitHub ↗

BindNamed binds a query within a transaction's bindvar type.

(query string, arg interface{})

Source from the content-addressed store, hash-verified

413
414// BindNamed binds a query within a transaction's bindvar type.
415func (tx *Tx) BindNamed(query string, arg interface{}) (string, []interface{}, error) {
416 return bindNamedMapper(BindType(tx.driverName), query, arg, tx.Mapper)
417}
418
419// NamedQuery within a transaction.
420// Any named placeholder parameters are replaced with fields from arg.

Callers

nothing calls this directly

Calls 2

bindNamedMapperFunction · 0.85
BindTypeFunction · 0.85

Tested by

no test coverage detected