[odb-users] Querying string containers...

Boris Kolpackov boris at codesynthesis.com
Wed Sep 14 07:51:49 EDT 2011


Hi Andreas,

Andreas Gerasch <gerasch at informatik.uni-tuebingen.de> writes:

> we are now using your odb lib in our project and it works great, thanks  
> a lot!

I am glad you are anjoying it!


> But we would like to have some additional features... so when do you  
> plan to implement queries for containers, as discussed several month ago  
> at the ML?
>
> class UtilityClass {
> ...
> std::vector<std::string> comment;
> ...
> }
>
> odb::query<UtilityClass>::comment.contains ("some_string")

We have a (long) list of features that people have requested or that
we thought would be generally useful. Now the line for the container
support in queries has an extra +1.

However, I don't have a definite time-line for when this particular
feature will be implemented. As I said, the TODO list is quite long
and some features on it appear to be more critical.

Also, I am currently working on the view feature which has an open-
ended list of applications. Maybe you will be able to use it to
emulate container queries for the time being. The pre-release
should be out in a couple of days.


> Also queries of type
>
> odb::query<UtitlityClass>::xrefs::db = "some_string"
>
> where xrefs is a pointer to an Xref class containing a string attribute  
> "db"

This is supported. Doesn't it work for you?

Boris



More information about the odb-users mailing list