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

Method BindNamed

sqlx.go:301–303  ·  view source on GitHub ↗

BindNamed binds a query using the DB driver's bindvar type.

(query string, arg interface{})

Source from the content-addressed store, hash-verified

299
300// BindNamed binds a query using the DB driver's bindvar type.
301func (db *DB) BindNamed(query string, arg interface{}) (string, []interface{}, error) {
302 return bindNamedMapper(BindType(db.driverName), query, arg, db.Mapper)
303}
304
305// NamedQuery using this DB.
306// 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