diff --git a/sqlx_context.go b/sqlx_context.go index 0b171451..18be4aed 100644 --- a/sqlx_context.go +++ b/sqlx_context.go @@ -273,6 +273,12 @@ func (tx *Tx) QueryRowxContext(ctx context.Context, query string, args ...interf return &Row{rows: rows, err: err, unsafe: tx.unsafe, Mapper: tx.Mapper} } +// NamedQueryContext using this Tx. +// Any named placeholder parameters are replaced with fields from arg. +func (tx *Tx) NamedQueryContext(ctx context.Context, query string, arg interface{}) (*Rows, error) { + return NamedQueryContext(ctx, tx, query, arg) +} + // NamedExecContext using this Tx. // Any named placeholder parameters are replaced with fields from arg. func (tx *Tx) NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error) {