@Override
    public Argument build(Period period, ConfigRegistry config) {
        PGInterval interval = new PGInterval(period.getYears(), period.getMonths(), period.getDays(), 0, 0, 0);
        return ObjectArgument.of(interval, Types.OTHER);
    }
Postgres version of argument factory for {@link Period}.
postgres/src/main/java/org/jdbi/v3/postgres/PeriodArgumentFactory.java