func NewReader(db *sqlx.DB, query string) (*Reader, error) {
	rows, err := db.Queryx(query)
	if err != nil {
		return nil, err
	}

	return &Reader{
		db:   db,
		dest: &htsdb.SamRecord{},
		rows: rows,
	}, nil
}
// NewReader returns a new Reader that reads from db using the given query.
NewReader returns a new Reader that reads from db using the given query.
// NewReader returns a new Reader that reads from db using the given query .
func NewReader(db *sqlx.DB, query string) (*Reader, error) {
	rows, err := db.Queryx(query)
	if err != nil {
		return nil, err
	}
	return &Reader{
		db:   db,
		dest: &htsdb.SamRecord{},
		rows: rows,
	}, nil
}
func NewReader ( db * sqlx . DB , query string ) ( * Reader , error ) { rows , err := db . Queryx ( query ) if err != nil { return nil , err } return & Reader { db : db , dest : & htsdb . SamRecord { } , rows : rows , } , nil }
NewReader returns a new Reader that reads from db using the given query.
NewReader returns a new Reader that reads from db using the given query .