The solar-stellar connection after CoRoT and Kepler