Get using this NamedStmt Any named placeholder parameters are replaced with fields from arg.
(dest interface{}, arg interface{})
| 111 | // Get using this NamedStmt |
| 112 | // Any named placeholder parameters are replaced with fields from arg. |
| 113 | func (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 |
| 119 | func (n *NamedStmt) Unsafe() *NamedStmt { |