[web-devel] [Yesod][Persist] Like keyword

Max Cantor mxcantor at gmail.com
Wed Dec 22 05:36:13 CET 2010


Perhaps instead of throwing an exception, you add a typeclass PersistBackendLikeQuery or something where only backends that can handle like queries provide that typeclass.  seems better and much more haskellish than tossing an exception.

Max

On Dec 21, 2010, at 6:43 PM, Michael Snoyman wrote:

> I've also wanted this at times. I'm a little wary of including it,
> since it is very SQL-specific. On the other hand, it might be
> reasonable to allow it in, and then non-SQL backends can either ignore
> it, throw an exception, or try to implement it somehow. Does anyone
> have any thoughts on this?
> 
> Michael
> 
> 2010/12/21 いとうかつとし <cutsea110 at gmail.com>:
>> Hi
>> continuously another request...
>> I'd like to write "Like" keyword for using as Filter.
>> this isn't supported yet, is this?
>> 
>> _______________________________________________
>> web-devel mailing list
>> web-devel at haskell.org
>> http://www.haskell.org/mailman/listinfo/web-devel
>> 
>> 
> 
> _______________________________________________
> 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