[odb-users] Query Result Problem

Boris Kolpackov boris at codesynthesis.com
Fri Sep 25 09:58:36 EDT 2015


Hi Erez,

Erez Pics <picserez at gmail.com> writes:

> I am unsure how to make this an inner join instead of the default left
> join, the ODB compiler does not approve the syntax I use, can you
> please advice how to make the view to be an inner join ?

Just search the manual. Is it really easier to write an email than
open the manual, hit Ctrl-F, and type "inner join"? There is even
an example:

#pragma db view object(employer) \
  object(country inner: employer::name == country::name)
struct employer_named_country
{
  shared_ptr<employer> e;
  shared_ptr<country> c;
};

Boris



More information about the odb-users mailing list