On Wednesday, May 2, 2018 at 10:22:24 AM UTC-7, Rodrigo Rosenfeld Rosas
wrote:
>
> Your proposed API sounds good to me.
>
Unforunately, the proposed API is not possible, as Sequel.like and
Sequel.like take an arbitrary number of arguments:
Sequel.like(:a, 'a%', /^a/i) # (("a" LIKE 'a%' ESCAPE '\') OR ("a" ~*
'^a'))
Escaping also can't really work with regexps, which Sequel.like and
Sequel.ilike support.
So if we want to support this, we would have to add a new method and a new
class to support it. I'm not sure there is enough need to support adding
this functionality in core, but potentially it could be supported via a
Dataset extension. I'm open to ideas regarding the possible API for such an
extension.
Thanks,
Jeremy
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.