package gc.mda.kcg.domain.sensor;

import org.springframework.data.jpa.repository.JpaRepository;

import java.time.Instant;
import java.util.List;

public interface PressureReadingRepository extends JpaRepository<PressureReading, Long> {
    boolean existsByStationAndReadingTime(String station, Instant readingTime);
    List<PressureReading> findByStationAndReadingTimeAfterOrderByReadingTimeAsc(String station, Instant since);
    List<PressureReading> findByReadingTimeAfterOrderByReadingTimeAsc(Instant since);
}
