[web-devel] Yesod. Persistent. The little problem
Max Cantor
mxcantor at gmail.com
Thu May 12 20:24:23 CEST 2011
liftM2 (nub . (++)) (selectList [TableF1Eq v1, TableF2Eq v2] [] 0 0)
(selectList [TableF1Eq v1, TableF3Eq v2] [] 0 0)
its not very efficient, and mike will yell at me for using nub, but its good enough for 230 am.
goodnight, max
On May 13, 2011, at 2:15 AM, Anton Cheshkov wrote:
> Hi All,
>
> i have the difficulty to build query kind of
>
> select * from Table T where T.f1 = v1 and (T.f2 = v2 or T.f3 = v2)
>
> how to make this one with Yesod Persistent. Are there any ideas ?
>
> Thanks.
>
>
> --
> Best regards,
> Cheshkov Anton
> Phone: +7 909 005 18 82
> Skype: cheshkov_anton
> _______________________________________________
> web-devel mailing list
> web-devel at haskell.org
> http://www.haskell.org/mailman/listinfo/web-devel
More information about the web-devel
mailing list