QueryxContext using this NamedStmt Any named placeholder parameters are replaced with fields from arg.
(ctx context.Context, arg interface{})
| 77 | // QueryxContext using this NamedStmt |
| 78 | // Any named placeholder parameters are replaced with fields from arg. |
| 79 | func (n *NamedStmt) QueryxContext(ctx context.Context, arg interface{}) (*Rows, error) { |
| 80 | r, err := n.QueryContext(ctx, arg) |
| 81 | if err != nil { |
| 82 | return nil, err |
| 83 | } |
| 84 | return &Rows{Rows: r, Mapper: n.Stmt.Mapper, unsafe: isUnsafe(n)}, err |
| 85 | } |
| 86 | |
| 87 | // QueryRowxContext this NamedStmt. Because of limitations with QueryRow, this is |
| 88 | // an alias for QueryRow. |