Queryx using this NamedStmt Any named placeholder parameters are replaced with fields from arg.
(arg interface{})
| 82 | // Queryx using this NamedStmt |
| 83 | // Any named placeholder parameters are replaced with fields from arg. |
| 84 | func (n *NamedStmt) Queryx(arg interface{}) (*Rows, error) { |
| 85 | r, err := n.Query(arg) |
| 86 | if err != nil { |
| 87 | return nil, err |
| 88 | } |
| 89 | return &Rows{Rows: r, Mapper: n.Stmt.Mapper, unsafe: isUnsafe(n)}, err |
| 90 | } |
| 91 | |
| 92 | // QueryRowx this NamedStmt. Because of limitations with QueryRow, this is |
| 93 | // an alias for QueryRow. |