I'm about to do some schema changes to include time intervals (not 
date-time intervals), but before I go to far I was wondering if JOOQ had 
anything special to craft queries like this:

select ...
from devices d
where (now() at time zone 'UTC' + make_interval(hours := 
d.utc_offset_hours))::time 
    BETWEEN time '10:00' AND time '22:00';


I suppose at the very least I could make it a text string like this:

"select ...
from devices d
where (now() at time zone 'UTC' + make_interval(hours := 
d.utc_offset_hours))::time 
    BETWEEN time ?' AND time ?"


But it would be nice to be able to construct this query in a type-safe way 
that would detect schema changes. Maybe there is and I just don't know all 
the depths of JOOQ yet.  

TIA,

R.

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to