[odb-users] [Search of feature] LIKE in the ODB query language

florian grignon grignon.florian at gmail.com
Tue Feb 12 04:08:13 EST 2013


Hi Boris,

Thank you for your answer. I'm gonna try to implement quickly the like.

I would be very glad to have your patch when you're done with it.

I did see that the like is in the TODO list, but I didn't see that it's
going to be in the 2.2 ?

Keep me in touch about the patch.


On Mon, Feb 11, 2013 at 7:15 PM, Boris Kolpackov <boris at codesynthesis.com>wrote:

> Hi Florian,
>
> Thanks for re-sending your question to the mailing list ;-).
>
> florian grignon <grignon.florian at gmail.com> writes:
>
> > Even if we can do a "like" through the native query language.
>
> Here is an earlier post that shows how to do this via a native query:
>
> http://codesynthesis.com/pipermail/odb-users/2012-November/000918.html
>
>
> > [...] if not existing, I would patch or add it to the library. Moreover,
> > during my searches inside the source code, I don't find the definition
> > of the in operator and the in_range.
>
> Yes, the LIKE operator can be handled just like IN. In the SQLite runtime,
> in() functions are defined in odb/sqlite/query.hxx and implemented in
> odb/sqlite/query.txx.
>
> Also, LIKE is on our TODO list and we would like to support it. In fact,
> if you can wait a few days, I can implement it and give you the patch
> (we like to implement features that someone is willing to start using
> before the release).
>
> Boris
>


More information about the odb-users mailing list