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

Method Queryx

named.go:84–90  ·  view source on GitHub ↗

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

(arg interface{})

Source from the content-addressed store, hash-verified

82// Queryx using this NamedStmt
83// Any named placeholder parameters are replaced with fields from arg.
84func (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.

Callers 2

TestNamedQueriesFunction · 0.95
SelectMethod · 0.95

Calls 2

QueryMethod · 0.95
isUnsafeFunction · 0.85

Tested by 1

TestNamedQueriesFunction · 0.76