[odb-users] Querying on Containers

Lukas Obermann obermann.lukas at gmail.com
Wed Oct 19 11:10:15 EDT 2016


Hi Boris,

ok, I tried a few things around today and seems that the issue was on my
side somewhere, as this was not working before, but I assume I screwed up
somewhere else.

So, I can access it now via:

#pragma db view \
  object(main) \
  object(ClassA = a: main::ptr_a) \
  object(ClassA = list_a: main::list_a) \
  object(ClassB = b: main::ptr_b) \
  object(ClassC = c: b::ptr_c)
...

Looks good now. Will continue testing.

Thanks for the help!

All the best,
Lukas




Boris Kolpackov <boris at codesynthesis.com> schrieb am Di., 18. Okt. 2016 um
17:44 Uhr:

Hi Lukas,

Lukas Obermann <obermann.lukas at gmail.com> writes:

> #pragma db view \
> object(main) \
> object(ClassA = a: main::ptr_a) \
> object(ClassA = list_a: main::list_a) \
> object(ClassB = b: main::ptr_b)
> ...

Have you tried adding:

object(ClassC ...)

Just like you did for the others?

Boris


More information about the odb-users mailing list