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

Method Get

named.go:113–116  ·  view source on GitHub ↗

Get using this NamedStmt Any named placeholder parameters are replaced with fields from arg.

(dest interface{}, arg interface{})

Source from the content-addressed store, hash-verified

111// Get using this NamedStmt
112// Any named placeholder parameters are replaced with fields from arg.
113func (n *NamedStmt) Get(dest interface{}, arg interface{}) error {
114 r := n.QueryRowx(arg)
115 return r.scanAny(dest, false)
116}
117
118// Unsafe creates an unsafe version of the NamedStmt
119func (n *NamedStmt) Unsafe() *NamedStmt {

Callers

nothing calls this directly

Calls 2

QueryRowxMethod · 0.95
scanAnyMethod · 0.80

Tested by

no test coverage detected