Brian Vaughan
unread,Feb 4, 2011, 11:55:07 PM2/4/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Squeryl
Hi,
Anywhere to find more detailed examples of Squeryl usage?
Currently I'm struggling to figure out how to use dates... I know I
can use java.util.Date as a "Primitive" date, but maybe there's some
non-primitive date as well? Since java.util.Date is mostly
deprecated, should we really be using it?
The specific query I'm trying to write in squeryl right now is one to
fetch all rows for a certain day... without caring about the time of
day (the time isn't stored in my DB)
In postgres I can write queries like:
select * from mytable where extract(year from thedate)=2010 and
extract(month from thedate)=2 ....
How would I write this kind of query using Squeryl?
Thanks,
-brian